public void TestBitStreamDataReaderGetVlc() { using (BitStreamDataReader dataReader = new BitStreamDataReader(new MockDataReader(new byte[] { 0x40 }, _inputFile))) { Assert.AreEqual(3, dataReader.GetVlc(_mockTable), "BitStreamDataReader.GetVlc()"); } }
public void TestBitStreamDataReaderGetVlcIncrementsPosition() { using (BitStreamDataReader dataReader = new BitStreamDataReader(new MockDataReader(new byte[] { 0x40 }, _inputFile))) { Pair<byte,long> bitPosition = dataReader.BitPosition; Assert.AreEqual(3, dataReader.GetVlc(_mockTable), "BitStreamDataReader.GetVlc()"); Assert.That(dataReader.BitPosition, Is.Not.EqualTo(bitPosition)); } }
public T GetVlc <T>(VlcTable <T> vlcTable) { return(_dataReader.GetVlc(vlcTable)); }