예제 #1
0
            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);
            }
예제 #2
0
        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);
        }