Skip to content

Commit a66a4b1

Browse files
committed
Close coverage gaps.
1 parent b771fa4 commit a66a4b1

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

DependencyQueue.Tests/DependencyQueueTests.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)