Beispiel #1
0
        public void TestExceptionCaught()
        {
            var mockLogger = new Mock <ILogger <TcpHandler> >();
            var context    = new Mock <IChannelHandlerContext>();
            var handler    = new TcpHandler(mockLogger.Object);

            handler.ChannelReadComplete(context.Object);
            handler.ExceptionCaught(context.Object, new Exception("tEST"));
        }