Skip to content

Commit

Permalink
Update ExceptionTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Sep 23, 2020
1 parent 6e20bc7 commit 678773f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/MediatR.Tests/ExceptionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public async Task Should_throw_exception_for_non_request_send()
object nonRequest = new NonRequest();

var argumentException = await Should.ThrowAsync<ArgumentException>(async () => await mediator.Send(nonRequest));
Assert.Equal("NonRequest does not implement IRequest\r\nParameter name: request", argumentException.Message);
Assert.StartsWith("NonRequest does not implement IRequest", argumentException.Message);
}

public class NonRequest
Expand Down

0 comments on commit 678773f

Please sign in to comment.