public void MissingRecords()
        {
            var engine = new FileDiffEngine <DiffOrdersFixed>();

            DiffOrdersFixed[] res = engine.OnlyMissingRecords(FileTest.Good.DiffOrdersOld.Path, FileTest.Good.DiffOrdersNew.Path);
            Assert.AreEqual(2, res.Length);
        }
Example #2
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);
		}
Example #3
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);
        }