public void SkipBytesTest() { byte[] input = new byte[4] { 1, 2, 3, 4 }; WangStream wangStream = new WangStream(input); Assert.IsFalse(wangStream.IsEnd()); wangStream.SkipBytes(2); Assert.IsFalse(wangStream.IsEnd()); Assert.AreEqual(2, wangStream.AvailableBytes()); Assert.AreEqual(3, wangStream.ReadByte()); Assert.IsFalse(wangStream.IsEnd()); Assert.AreEqual(1, wangStream.AvailableBytes()); }