AjErl.Tests.Communication.OutputChannelTests.WriteByte C# (CSharp) Метод

WriteByte() приватный Метод

private WriteByte ( ) : void
Результат void
        public void WriteByte()
        {
            MemoryStream stream = new MemoryStream();
            OutputChannel channel = new OutputChannel(new BinaryWriter(stream));

            byte bt = 64;

            channel.Write(bt);

            stream.Seek(0, SeekOrigin.Begin);

            BinaryReader reader = new BinaryReader(stream);

            Assert.AreEqual((byte)Types.Byte, reader.ReadByte());
            Assert.AreEqual(bt, reader.ReadByte());
            Assert.AreEqual(-1, reader.PeekChar());

            reader.Close();
        }