Skip to content

Commit

Permalink
Limit Castle Core to 4.2.1 which has fix for nsubstitute#372
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrnikitin committed Mar 9, 2018
1 parent bed6fac commit 2ba1519
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/NSubstitute/NSubstitute.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Castle.Core" Version="4.2.0-*" />
<PackageReference Include="Castle.Core" Version="4.2.1-*" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.3.0-*" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System.Threading.Tasks;
using NUnit.Framework;

namespace NSubstitute.Acceptance.Specs.FieldReports
{
public class Issue372_InterfaceSameNameOfMethods
{
public interface A<T>
{
}

public interface B<T>
{
}

public interface X
{
Task<K> Foo<K>(B<K> bar);
Task<K> Foo<K>(A<K> bar);
}

[Test]
public void Should_create_substitute()
{
var sut = Substitute.For<X>();
Assert.NotNull(sut);
}
}
}

0 comments on commit 2ba1519

Please sign in to comment.