示例#1
0
        public async Task Build_returns_call_with_response([Frozen] HelloReply result, AsyncServerStreamingTestCallBuilder <HelloReply> sut)
        {
            var call = sut.Build();

            var items = await call.ResponseStream.ToListAsync();

            Assert.That(items[0], Is.SameAs(result));
        }
示例#2
0
        public void Build_returns_call_with_response(AsyncServerStreamingTestCallBuilder <HelloReply> sut)
        {
            var call = sut.Build();

            Assert.That(call, Is.InstanceOf <AsyncServerStreamingCall <HelloReply> >());
        }