AjErl.Tests.Communication.InputChannelTests.ReadNull C# (CSharp) Méthode

ReadNull() private méthode

private ReadNull ( ) : void
Résultat 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());
        }