Exemplo n.º 1
0
        public void TestLongerMod()
        {
            byte[] b1 = new DeltaTest(100).Serialize();
            byte[] b2 = new DeltaTest(120).Serialize();

            Assert.IsTrue(GeneratePatchAndApply(b1, b2));
        }
Exemplo n.º 2
0
        public void TestDifferentObjects2()
        {
            byte[] b1 = new DeltaTest(4096).Serialize();
            byte[] b2 = new DeltaTest(4096).Randomize(1000, 1100).Randomize(2000, 2100).Serialize();

            Assert.IsTrue(GeneratePatchAndApply(b1, b2));
        }
Exemplo n.º 3
0
        public void TestShorterModDifferent()
        {
            byte[] b1 = new DeltaTest(120).Serialize();
            byte[] b2 = new DeltaTest(100).Randomize(60, 80).Serialize();

            Assert.IsTrue(GeneratePatchAndApply(b1, b2));
        }
Exemplo n.º 4
0
        public void TestIdenticalObjects()
        {
            byte[] b1 = new DeltaTest(100).Serialize();
            byte[] b2 = new DeltaTest(100).Serialize();

            Assert.IsTrue(GeneratePatchAndApply(b1, b2));
        }