diff --git a/src/NSubstitute/NSubstitute.csproj b/src/NSubstitute/NSubstitute.csproj index 96cdeca07..fb54475a5 100644 --- a/src/NSubstitute/NSubstitute.csproj +++ b/src/NSubstitute/NSubstitute.csproj @@ -36,7 +36,7 @@ - + diff --git a/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue372_InterfaceSameNameOfMethods.cs b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue372_InterfaceSameNameOfMethods.cs new file mode 100644 index 000000000..66ecb4b15 --- /dev/null +++ b/tests/NSubstitute.Acceptance.Specs/FieldReports/Issue372_InterfaceSameNameOfMethods.cs @@ -0,0 +1,29 @@ +using System.Threading.Tasks; +using NUnit.Framework; + +namespace NSubstitute.Acceptance.Specs.FieldReports +{ + public class Issue372_InterfaceSameNameOfMethods + { + public interface A + { + } + + public interface B + { + } + + public interface X + { + Task Foo(B bar); + Task Foo(A bar); + } + + [Test] + public void Should_create_substitute() + { + var sut = Substitute.For(); + Assert.NotNull(sut); + } + } +} \ No newline at end of file