forked from nsubstitute/NSubstitute
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Limit Castle Core to 4.2.1 which has fix for nsubstitute#372
- Loading branch information
1 parent
bed6fac
commit 2ba1519
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
tests/NSubstitute.Acceptance.Specs/FieldReports/Issue372_InterfaceSameNameOfMethods.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} | ||
} |