Skip to content

Commit 2bff710

Browse files
committed
Fix test
1 parent 25cbdc5 commit 2bff710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/csla.netcore.test/DataPortal/ServiceProviderInvocationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ public void Initialize()
3636
}
3737

3838
[TestMethod]
39-
public async Task NoServiceProvider()
39+
public async Task NoServiceProvider_Throws()
4040
{
4141
var obj = new TestMethods();
4242
var method = new ServiceProviderMethodInfo { MethodInfo = obj.GetType().GetMethod("Method1") };
4343
Assert.IsNotNull(method, "needed method");
44-
await Assert.ThrowsExceptionAsync<InvalidOperationException>(async () => await ServiceProviderMethodCaller.CallMethodTryAsync(obj, method, new object[] { 123 }));
44+
await Assert.ThrowsExceptionAsync<InjectException>(async () => await ServiceProviderMethodCaller.CallMethodTryAsync(obj, method, new object[] { 123 }));
4545
}
4646

4747
[TestMethod]

0 commit comments

Comments
 (0)