public void TransformRecords()
		{
			FileTransformEngine engine = new FileTransformEngine(typeof(FromClass), typeof(ToClass));
			ToClass[] res = (ToClass[]) engine.ReadAndTransformRecords(Common.TestPath("Good\\Transform2.txt"));

			Assert.AreEqual(@"c:\Prueba1\anda ?", res[0].CompanyName);
			Assert.AreEqual("\"D:\\Glossaries\\O12\"", res[1].CompanyName);
			Assert.AreEqual(@"\\s\\", res[2].CompanyName);
		}
        public void TransformRecords()
        {
            var engine = new FileTransformEngine <FromClass, ToClass>();

            ToClass[] res = engine.ReadAndTransformRecords(FileTest.Good.Transform2.Path);

            Assert.AreEqual(@"c:\Prueba1\anda ?", res[0].CompanyName);
            Assert.AreEqual("\"D:\\Glossaries\\O12\"", res[1].CompanyName);
            Assert.AreEqual(@"\\s\\", res[2].CompanyName);
        }
Exemple #3
0
        public void TransformRecords()
        {
            FileTransformEngine engine = new FileTransformEngine(typeof(FromClass), typeof(ToClass));

            ToClass[] res = (ToClass[])engine.ReadAndTransformRecords(Common.TestPath("Good\\Transform2.txt"));

            Assert.AreEqual(@"c:\Prueba1\anda ?", res[0].CompanyName);
            Assert.AreEqual("\"D:\\Glossaries\\O12\"", res[1].CompanyName);
            Assert.AreEqual(@"\\s\\", res[2].CompanyName);
        }