Ejemplo n.º 1
0
        public async Task TcpClient_Should_Be_Derivable()
        {
            var tcpClient = new TestTcpClient(_tcpClientChannelFactory, _logger, _eventLoopGroupFactory);
            var exception = await Record.ExceptionAsync(() => tcpClient.StartAsync());

            exception.Should().BeOfType <NotImplementedException>();
        }
Ejemplo n.º 2
0
        public async Task TcpClient_Should_Be_Derivable()
        {
            var tcpClient = new TestTcpClient(_tcpClientChannelFactory, _logger, _eventLoopGroupFactory);

            Assert.Throws <NotImplementedException>(() => tcpClient.StartAsync());
        }