コード例 #1
0
        public async Task CompleteAsync_throws_if_called_twice(MockClientStreamWriter <HelloReply> sut)
        {
            await sut.CompleteAsync();

            Assert.That(() => sut.CompleteAsync(), Throws.Exception);
        }
コード例 #2
0
        public async Task WriteAsync_throws_if_called_after_CompleteAsync(MockClientStreamWriter <HelloReply> sut, HelloReply item)
        {
            await sut.CompleteAsync();

            Assert.That(() => sut.WriteAsync(item), Throws.Exception);
        }