BitSharper.Test.VarIntTest.TestBytes C# (CSharp) Method

TestBytes() private method

private TestBytes ( ) : void
return void
        public void TestBytes()
        {
            var a = new VarInt(10);
            Assert.AreEqual(1, a.SizeInBytes);
            Assert.AreEqual(1, a.Encode().Length);
            Assert.AreEqual(10UL, new VarInt(a.Encode(), 0).Value);
        }