Skip to content

Commit

Permalink
chore: fix changes to fluent assertions interface
Browse files Browse the repository at this point in the history
  • Loading branch information
iancooper committed Jan 15, 2025
1 parent bfb80db commit d2b1921
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ public async Task When_a_message_consumer_reads_multiple_messages()
//retrieve messages
var messages = _consumer.Receive(TimeSpan.FromMilliseconds(10000));

messages.Length.Should().BeLessOrEqualTo(outstandingMessageCount);
messages.Length.Should().BeLessThanOrEqualTo(outstandingMessageCount);

//should not receive more than buffer in one hit
messages.Length.Should().BeLessOrEqualTo(BufferSize);

messages.Length.Should().BeLessThanOrEqualTo(BufferSize);

var moreMessages = messages.Where(m => m.Header.MessageType == MessageType.MT_COMMAND);
foreach (var message in moreMessages)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ public async Task When_a_message_consumer_reads_multiple_messages_async()
//retrieve messages
var messages = await _consumer.ReceiveAsync(TimeSpan.FromMilliseconds(10000));

messages.Length.Should().BeLessOrEqualTo(outstandingMessageCount);
messages.Length.Should().BeLessThanOrEqualTo(outstandingMessageCount);

//should not receive more than buffer in one hit
messages.Length.Should().BeLessOrEqualTo(BufferSize);
messages.Length.Should().BeLessThanOrEqualTo(BufferSize);

var moreMessages = messages.Where(m => m.Header.MessageType == MessageType.MT_COMMAND);
foreach (var message in moreMessages)
Expand Down

0 comments on commit d2b1921

Please sign in to comment.