Skip to content

Commit

Permalink
Fixed tests broken by exception type changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajcvickers committed Jul 5, 2022
1 parent e0bfb2e commit 2897911
Showing 1 changed file with 4 additions and 4 deletions.
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 2897911

Please sign in to comment.