Exemplo n.º 1
0
        public void DiffEmptyNews()
        {
            var engine = new FileDiffEngine <CustomersVerticalBar>();

            CustomersVerticalBar[] res = engine.OnlyNewRecords(FileTest.Good.CustomersVerticalBarOlds.Path, FileTest.Good.EmptyFile.Path);
            Assert.AreEqual(0, res.Length);
        }
Exemplo n.º 2
0
        public void OnlyDuplicatedRecords()
        {
            var engine = new FileDiffEngine <DiffOrdersFixed>();

            DiffOrdersFixed[] res = engine.OnlyDuplicatedRecords(FileTest.Good.DiffOrdersOld.Path, FileTest.Good.DiffOrdersNew.Path);
            Assert.AreEqual(10, res.Length);
        }
Exemplo n.º 3
0
		public void DiffCustomers()
		{
			engine = new FileDiffEngine(typeof (CustomersVerticalBar));
			CustomersVerticalBar[] res = engine.OnlyNewRecords(Common.TestPath(@"good\CustomersVerticalBarOlds.txt"), Common.TestPath(@"good\CustomersVerticalBar.txt")) as CustomersVerticalBar[];
			Assert.AreEqual(10, res.Length);
			Assert.AreEqual("BLAUS", res[0].CustomerID);
			Assert.AreEqual("BLONP", res[1].CustomerID);
		}
Exemplo n.º 4
0
 public void DiffCustomers()
 {
     engine = new FileDiffEngine(typeof(CustomersVerticalBar));
     CustomersVerticalBar[] res = engine.OnlyNewRecords(Common.TestPath(@"good\CustomersVerticalBarOlds.txt"), Common.TestPath(@"good\CustomersVerticalBar.txt")) as CustomersVerticalBar[];
     Assert.AreEqual(10, res.Length);
     Assert.AreEqual("BLAUS", res[0].CustomerID);
     Assert.AreEqual("BLONP", res[1].CustomerID);
 }
Exemplo n.º 5
0
        public void DiffCustomers()
        {
            var engine = new FileDiffEngine <CustomersVerticalBar>();

            CustomersVerticalBar[] res = engine.OnlyNewRecords(FileTest.Good.CustomersVerticalBarOlds.Path, FileTest.Good.CustomersVerticalBar.Path);
            Assert.AreEqual(10, res.Length);
            Assert.AreEqual("BLAUS", res[0].CustomerID);
            Assert.AreEqual("BLONP", res[1].CustomerID);
        }
Exemplo n.º 6
0
		public void OnlyNewRecords()
		{
			engine = new FileDiffEngine(typeof (DiffOrdersFixed));
			DiffOrdersFixed[] res = engine.OnlyNewRecords(Common.TestPath(@"good\DiffOrdersOld.txt"), Common.TestPath(@"good\DiffOrdersNew.txt")) as DiffOrdersFixed[];
			Assert.AreEqual(5, res.Length);
			
			res = engine.OnlyMissingRecords(Common.TestPath(@"good\DiffOrdersNew.txt"), Common.TestPath(@"good\DiffOrdersOld.txt")) as DiffOrdersFixed[];
			Assert.AreEqual(5, res.Length);
		}
Exemplo n.º 7
0
        public void OnlyNewRecords()
        {
            engine = new FileDiffEngine(typeof(DiffOrdersFixed));
            DiffOrdersFixed[] res = engine.OnlyNewRecords(Common.TestPath(@"good\DiffOrdersOld.txt"), Common.TestPath(@"good\DiffOrdersNew.txt")) as DiffOrdersFixed[];
            Assert.AreEqual(5, res.Length);

            res = engine.OnlyMissingRecords(Common.TestPath(@"good\DiffOrdersNew.txt"), Common.TestPath(@"good\DiffOrdersOld.txt")) as DiffOrdersFixed[];
            Assert.AreEqual(5, res.Length);
        }
Exemplo n.º 8
0
        public void OnlyNewRecords()
        {
            var engine = new FileDiffEngine <DiffOrdersFixed>();

            DiffOrdersFixed[] res = engine.OnlyNewRecords(FileTest.Good.DiffOrdersOld.Path, FileTest.Good.DiffOrdersNew.Path);
            Assert.AreEqual(5, res.Length);

            res = engine.OnlyMissingRecords(FileTest.Good.DiffOrdersNew.Path, FileTest.Good.DiffOrdersOld.Path);
            Assert.AreEqual(5, res.Length);
        }
Exemplo n.º 9
0
		public void DiffTypeError()
		{
			engine = new FileDiffEngine(typeof (CustomersFixed));
		}
Exemplo n.º 10
0
		public void DiffEmptyNews()
		{
			engine = new FileDiffEngine(typeof (CustomersVerticalBar));
			CustomersVerticalBar[] res = engine.OnlyNewRecords(Common.TestPath(@"good\CustomersVerticalBarOlds.txt"), Common.TestPath(@"good\EmptyFile.txt")) as CustomersVerticalBar[];
			Assert.AreEqual(0, res.Length);
		}
Exemplo n.º 11
0
 public void DiffEmptyNews()
 {
     engine = new FileDiffEngine(typeof(CustomersVerticalBar));
     CustomersVerticalBar[] res = engine.OnlyNewRecords(Common.TestPath(@"good\CustomersVerticalBarOlds.txt"), Common.TestPath(@"good\EmptyFile.txt")) as CustomersVerticalBar[];
     Assert.AreEqual(0, res.Length);
 }