Skip to content

Commit

Permalink
Bump Castle.Core from 4.4.1 to 5.0.0 (#28035)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Arthur Vickers <ajcvickers@hotmail.com>
  • Loading branch information
dependabot[bot] and ajcvickers authored Jul 5, 2022
1 parent ebe508e commit b417140
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/EFCore.Proxies/EFCore.Proxies.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Castle.Core" Version="4.4.1" />
<PackageReference Include="Castle.Core" Version="5.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions test/EFCore.Proxies.Tests/ProxyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,28 +206,28 @@ public void Proxy_services_must_be_available()
public void Throws_if_type_not_available_to_Castle()
{
using var context = new NeweyContextN4();
Assert.Throws<GeneratorException>(() => context.CreateProxy<McLarenMp421>());
Assert.Throws<ArgumentException>(() => context.CreateProxy<McLarenMp421>());
}

[ConditionalFact]
public void Throws_if_constructor_not_available_to_Castle()
{
using var context = new NeweyContextN5();
Assert.Throws<InvalidProxyConstructorArgumentsException>(() => context.CreateProxy<RedBullRb3>());
Assert.Throws<ArgumentException>(() => context.CreateProxy<RedBullRb3>());
}

[ConditionalFact]
public void CreateProxy_throws_if_constructor_args_do_not_match()
{
using var context = new NeweyContext();
Assert.Throws<InvalidProxyConstructorArgumentsException>(() => context.CreateProxy<March881>(77, 88));
Assert.Throws<ArgumentException>(() => context.CreateProxy<March881>(77, 88));
}

[ConditionalFact]
public void CreateProxy_throws_if_wrong_number_of_constructor_args()
{
using var context = new NeweyContext();
Assert.Throws<InvalidProxyConstructorArgumentsException>(() => context.CreateProxy<March881>(77, 88, 99));
Assert.Throws<ArgumentException>(() => context.CreateProxy<March881>(77, 88, 99));
}

[ConditionalFact]
Expand Down

0 comments on commit b417140

Please sign in to comment.