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

ReadLongInteger() private méthode

private ReadLongInteger ( ) : void
Résultat void
        public void ReadLongInteger()
        {
            MemoryStream stream = new MemoryStream();
            OutputChannel output = new OutputChannel(new BinaryWriter(stream));
            long ln = long.MaxValue;
            output.Write(ln);
            stream.Seek(0, SeekOrigin.Begin);

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

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