Esempio n. 1
0
 public void TestBitStreamDataReaderGetVlc()
 {
     using (BitStreamDataReader dataReader = new BitStreamDataReader(new MockDataReader(new byte[] { 0x40 }, _inputFile)))
     {
         Assert.AreEqual(3, dataReader.GetVlc(_mockTable), "BitStreamDataReader.GetVlc()");
     }
 }
Esempio n. 2
0
 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));
     }
 }
Esempio n. 3
0
 public T GetVlc <T>(VlcTable <T> vlcTable)
 {
     return(_dataReader.GetVlc(vlcTable));
 }