Adding repro for issue #83.
This commit is contained in:
Родитель
9dcc964ff6
Коммит
82edc3eb84
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace NSubstitute.Acceptance.Specs.FieldReports
|
||||
{
|
||||
public class Issue83_MethodsWithGenericStructConstraint
|
||||
{
|
||||
public interface IService { T Get<T>(T arg) where T : struct; }
|
||||
|
||||
[Test]
|
||||
[Pending]
|
||||
public void TestGenericCalls()
|
||||
{
|
||||
var id = Guid.NewGuid();
|
||||
var service = Substitute.For<IService>();
|
||||
service.Get(id);
|
||||
service.Received().Get(id);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -125,6 +125,7 @@
|
|||
<Compile Include="ArgDoFromMatcher.cs" />
|
||||
<Compile Include="AutoValuesForSubs.cs" />
|
||||
<Compile Include="ExceptionsWhenCheckingReceivedCalls.cs" />
|
||||
<Compile Include="FieldReports\Issue83_MethodsWithGenericStructConstraint.cs" />
|
||||
<Compile Include="FormattingCallsWhenThrowingReceivedCallsExceptions.cs" />
|
||||
<Compile Include="ClearCalls.cs" />
|
||||
<Compile Include="EventChecking.cs" />
|
||||
|
@ -208,4 +209,4 @@
|
|||
</ItemGroup>
|
||||
<Copy SourceFiles="@(Dependencies)" DestinationFolder="$(OutputPath)" />
|
||||
</Target>
|
||||
</Project>
|
||||
</Project>
|
Загрузка…
Ссылка в новой задаче