This commit is contained in:
David Tchepak 2012-08-15 10:31:37 +10:00
Родитель 9dcc964ff6
Коммит 82edc3eb84
2 изменённых файлов: 22 добавлений и 1 удалений

Просмотреть файл

@ -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>