public void ToUnevenByteRawByte_189_returns_189() { var lzByteConverter = new LZByteConverter(); uint expected = 189; var pb = new RawByte(189); var actual = lzByteConverter.ToUnevenByte(pb).Data; Assert.AreEqual(expected, actual); }
public void SlideReturnsRawByte_a_AsFirstByte() { var path = TestContext.CurrentContext.TestDirectory + "../../../res/testfile1"; var file = new DataFile(path); var sw = new SlidingWindow(file.GetAllBytes()); var expected = new RawByte(97); var actual = (RawByte)sw.Slide(); Assert.AreEqual(expected.Data, actual.Data); }