File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public void Construct_ExplicitComparer()
5050 queue . Topics . Should ( ) . BeEmpty ( ) ;
5151 queue . ReadyEntries . Should ( ) . BeEmpty ( ) ;
5252
53- using var view = queue . Inspect ( ) ;
53+ using var view = queue . InspectAsync ( ) . GetAwaiter ( ) . GetResult ( ) ;
5454
5555 view . Queue . Should ( ) . BeSameAs ( queue ) ;
5656 view . Comparer . Should ( ) . BeSameAs ( comparer ) ;
@@ -205,7 +205,7 @@ public void TryDequeue_NotValidated()
205205 }
206206
207207 [ Test ]
208- public void TryDequeue_Validated ( )
208+ public void TryDequeue_Initial ( )
209209 {
210210 using var queue = Queue ( ) ;
211211
@@ -385,6 +385,15 @@ void CompleteEntryB()
385385 queue . Should ( ) . HaveTopicCount ( 0 ) ;
386386 }
387387
388+ [ Test ]
389+ public async Task TryDequeueAsync_NotValidated ( )
390+ {
391+ using var queue = Queue ( ) ;
392+
393+ await queue . Awaiting ( q => q . TryDequeueAsync ( ) )
394+ . Should ( ) . ThrowAsync < InvalidOperationException > ( ) ;
395+ }
396+
388397 [ Test ]
389398 public async Task TryDequeueAsync_Initial ( )
390399 {
You can’t perform that action at this time.
0 commit comments