Skip to content

Commit

Permalink
Merge branch 'hotfix-dynamicproxy-regression'
Browse files Browse the repository at this point in the history
  • Loading branch information
stakx committed Oct 10, 2017
2 parents 61c3505 + 374418d commit 7a0f435
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 5 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Expand Up @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
The format is loosely based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).


## 4.7.142 (2017-10-11)

#### Changed

* Update package reference to `Castle.Core` (DynamicProxy) from version 4.2.0 to 4.2.1 due to a regression; see castleproject/Core#309 for details (@stakx, #482)

#### Fixed

* `TypeLoadException`s ("Method does not have an implementation") caused by the regression above, see e.g. #469 (@stakx, #482)


## 4.7.137 (2017-09-30)

#### Changed
Expand Down
2 changes: 1 addition & 1 deletion Moq.VisualBasicTests/project.json
@@ -1,6 +1,6 @@
{
"dependencies": {
"Castle.Core": "4.2.0",
"Castle.Core": "4.2.1",
"xunit": "2.3.0-beta3-build3705",
"xunit.runner.visualstudio": "2.3.0-beta3-build3705"
},
Expand Down
4 changes: 2 additions & 2 deletions Moq.nuspec
Expand Up @@ -14,13 +14,13 @@
<releaseNotes>A changelog is available at https://github.com/moq/moq4/blob/master/CHANGELOG.md.</releaseNotes>
<dependencies>
<group targetFramework=".NETFramework4.5">
<dependency id="Castle.Core" version="4.2.0" />
<dependency id="Castle.Core" version="4.2.1" />
</group>
<group targetFramework=".NETStandard1.3">
<dependency id="NETStandard.Library" version="1.6.1" />
<dependency id="System.Linq.Queryable" version="4.3.0" />
<dependency id="System.Reflection.TypeExtensions" version="4.3.0" />
<dependency id="Castle.Core" version="4.2.0" />
<dependency id="Castle.Core" version="4.2.1" />
</group>
</dependencies>
</metadata>
Expand Down
2 changes: 1 addition & 1 deletion Source/Moq.csproj
Expand Up @@ -27,7 +27,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Castle.Core" Version="4.2.0" />
<PackageReference Include="Castle.Core" Version="4.2.1" />
<PackageReference Include="GitInfo" Version="1.1.14" />
<PackageReference Include="IFluentInterface" Version="2.0.0" />
<PackageReference Include="SourceLink.Create.CommandLine" Version="2.2.1" PrivateAssets="All" />
Expand Down
2 changes: 1 addition & 1 deletion UnitTests/Moq.Tests.csproj
Expand Up @@ -19,7 +19,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Castle.Core" Version="4.2.0" />
<PackageReference Include="Castle.Core" Version="4.2.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" />
<PackageReference Include="xunit" Version="2.3.0-beta3-build3705" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.0-beta3-build3705" />
Expand Down
31 changes: 31 additions & 0 deletions UnitTests/Regressions/IssueReportsFixture.cs
Expand Up @@ -1599,6 +1599,37 @@ public class Foo : IFoo { }

#endregion

#region 469

public class Issue469
{
[Fact]
public void Mock_Object_should_be_able_to_mock_interface_with_overloaded_generic_methods_with_generic_parameters()
{
object dummy = new Mock<IHaveOverloadedGenericMethod>().Object;
}

public interface IHaveOverloadedGenericMethod
{
void GenericMethod<T>(GenericClass1<T> a);
void GenericMethod<T>(GenericClass2<T> a);
}

public abstract class BaseType<T>
{
}

public class GenericClass1<T> : BaseType<T>
{
}

public class GenericClass2<T> : BaseType<T>
{
}
}

#endregion

// Old @ Google Code

#region #47
Expand Down

0 comments on commit 7a0f435

Please sign in to comment.