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

ReadInteger() private method

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

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

            Assert.AreEqual(123, channel.Read());
        }