Skip to content

Commit

Permalink
Fix use of async void in xunit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis committed Oct 18, 2024
1 parent 62d2237 commit b5c49cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public void AddTestDomainEvent()
}

[Fact]
public async void CallsPublishAndClearDomainEventsWithStronglyTypedId()
public async Task CallsPublishAndClearDomainEventsWithStronglyTypedId()
{
// Arrange
var mediatorMock = new Mock<IMediator>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void AddTestDomainEvent()
}

[Fact]
public async void CallsPublishAndClearDomainEventsWithStronglyTypedId()
public async Task CallsPublishAndClearDomainEventsWithStronglyTypedId()
{
// Arrange
Mock<IMediator> mediatorMock = new Mock<IMediator>();
Expand Down

0 comments on commit b5c49cc

Please sign in to comment.