private static void AssertQueueEmpty(PendingWriteQueue queue) { Assert.True(queue.IsEmpty); Assert.Equal(0, queue.Size); Assert.Equal(0, queue.Bytes); Assert.Null(queue.Current); Assert.Null(queue.RemoveAndWriteAsync()); Assert.Null(queue.RemoveAndWriteAllAsync()); }