Beispiel #1
0
        public void OrderSync_Test_06()
        {
            StringSynCollection left  = new StringSynCollection(null);
            StringSynCollection right = new StringSynCollection(null);

            OrderSync.Sync(left, right);
            Assert.AreEqual(0, left.Equal.Count);
            Assert.AreEqual(0, right.Equal.Count);
            Assert.AreEqual(0, left.Less.Count);
            Assert.AreEqual(0, right.Less.Count);
            Assert.AreEqual(0, left.More.Count);
            Assert.AreEqual(0, right.More.Count);
        }
Beispiel #2
0
        public void OrderSync_Test_02()
        {
            StringSynCollection left  = new StringSynCollection(null);
            StringSynCollection right = new StringSynCollection("a", "b", "h", "i", "k", "m", "p", "z");

            OrderSync.Sync(left, right);
            Assert.AreEqual(0, left.Equal.Count);
            Assert.AreEqual(0, right.Equal.Count);
            Assert.AreEqual(0, left.Less.Count);
            Assert.AreEqual(0, right.Less.Count);
            Assert.AreEqual(0, left.More.Count);
            Assert.AreEqual(8, right.More.Count);
        }
Beispiel #3
0
        public void OrderSync_Test_05()
        {
            StringSynCollection left  = new StringSynCollection("a", "b", "c", "g", "i", "j");
            StringSynCollection right = new StringSynCollection("a", "b", "c", "g", "i", "k");

            OrderSync.Sync(left, right);
            Assert.AreEqual(5, left.Equal.Count);
            Assert.AreEqual(5, right.Equal.Count);
            Assert.AreEqual(1, left.Less.Count);
            Assert.AreEqual(0, right.Less.Count);
            Assert.AreEqual(0, left.More.Count);
            Assert.AreEqual(1, right.More.Count);
        }
Beispiel #4
0
        public void OrderSync_Test_01()
        {
            StringSynCollection left  = new StringSynCollection("a", "b", "c", "g", "i", "j");
            StringSynCollection right = new StringSynCollection("a", "b", "h", "i", "k", "m", "p", "z");

            OrderSync.Sync(left, right);
            Assert.AreEqual(3, left.Equal.Count);  //abi
            Assert.AreEqual(3, right.Equal.Count); //abi
            Assert.AreEqual(3, left.Less.Count);   //cgj
            Assert.AreEqual(1, right.Less.Count);  //h
            Assert.AreEqual(0, left.More.Count);
            Assert.AreEqual(4, right.More.Count);  //kmpz
        }