From 98f65ba8ee7e04efa8798fc995550af248eafe93 Mon Sep 17 00:00:00 2001 From: Anders Thomsen Date: Thu, 5 Oct 2017 08:48:27 +0200 Subject: [PATCH] Added test to show regression described in #469 --- UnitTests/Regressions/IssueReportsFixture.cs | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/UnitTests/Regressions/IssueReportsFixture.cs b/UnitTests/Regressions/IssueReportsFixture.cs index e79e1a69b..993f38ff0 100644 --- a/UnitTests/Regressions/IssueReportsFixture.cs +++ b/UnitTests/Regressions/IssueReportsFixture.cs @@ -1599,6 +1599,38 @@ public class Foo : IFoo { } #endregion + #region 469 + + public class Issue469 + { + [Fact(Skip = + "Temporarily disabled due to a regression in Castle Core, see https://github.com/castleproject/Core/issues/309.")] + public void Mock_Object_should_be_able_to_mock_interface_with_overloaded_generic_methods_with_generic_parameters() + { + object dummy = new Mock().Object; + } + + public interface IHaveOverloadedGenericMethod + { + void GenericMethod(GenericClass1 a); + void GenericMethod(GenericClass2 a); + } + + public abstract class BaseType + { + } + + public class GenericClass1 : BaseType + { + } + + public class GenericClass2 : BaseType + { + } + } + + #endregion + // Old @ Google Code #region #47