Skip to content

Commit

Permalink
Remove xUnit warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bartelink committed Apr 18, 2018
1 parent a7ec463 commit 7cf874d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public void WhenAuditSingle_ThenQueued()

var result = RetrieveEvents(_memorySink, 1);

Assert.Equal(1, result.Count);
Assert.Single(result);
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion test/Serilog.Sinks.Async.Tests/BackgroundWorkerSinkSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task WhenEmitSingle_ThenRelaysToInnerSink()

await Task.Delay(TimeSpan.FromSeconds(3));

Assert.Equal(1, _innerSink.Events.Count);
Assert.Single(_innerSink.Events);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void DisposeCompletesWithoutWorkPerformed()
{
}

Assert.Equal(0, collector.Events.Count);
Assert.Empty(collector.Events);
}
}
}

0 comments on commit 7cf874d

Please sign in to comment.