Skip to content

Commit

Permalink
Adding repro for field issue subbing for Func<int>
Browse files Browse the repository at this point in the history
  • Loading branch information
dtchepak committed Oct 26, 2010
1 parent aae08fa commit 139d30f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
@@ -0,0 +1,16 @@
using System;
using NUnit.Framework;

namespace NSubstitute.Acceptance.Specs.FieldReports
{
public class SubbingForFuncIntDelegate
{
[Test][Pending]
public void Should_not_given_weird_nullref_exceptions()
{
var func = Substitute.For<Func<int>>();
func().Returns(10);
Assert.AreEqual(10, func());
}
}
}
Expand Up @@ -58,6 +58,7 @@
<Compile Include="ClearCalls.cs" />
<Compile Include="EventChecking.cs" />
<Compile Include="EventRaising.cs" />
<Compile Include="FieldReports\SubbingForFuncIntDelegate.cs" />
<Compile Include="FieldReports\SubbingSynchronizationContext.cs" />
<Compile Include="Infrastructure\ICalculator.cs" />
<Compile Include="NotASubstituteExceptions.cs" />
Expand Down

0 comments on commit 139d30f

Please sign in to comment.