AjErl.Tests.Communication.InputChannelTests.ReadNull C# (CSharp) Method

ReadNull() private method

private ReadNull ( ) : void
return void
        public void ReadNull()
        {
            MemoryStream stream = new MemoryStream();
            OutputChannel output = new OutputChannel(new BinaryWriter(stream));
            output.Write(null);
            stream.Seek(0, SeekOrigin.Begin);

            InputChannel channel = new InputChannel(new BinaryReader(stream));

            Assert.IsNull(channel.Read());
        }