Exemplo n.º 1
0
        public void Unsupported_endpoint_type_should_throw()
        {
            var commandReply = new CommandReply(CommandReplyType.Succeeded, new DummyEndPoint());
            var stream       = new MemoryWriteOnlyStream();

            commandReply
            .Awaiting(x => x.WriteToAsync(stream, this._bufferPool))
            .Should()
            .Throw <InvalidDataException>()
            .And.Message.Should().ContainEquivalentOf(nameof(EndPoint));
        }