public void TestCollectorSample() { ICollector c = new Sidi.Sammy.CollectorSample.CollectorSample(); string path = FileUtil.BinFile(@"test-data\test.sqlite"); if (File.Exists(path)) { File.Delete(path); } Sidi.Persistence.Collection <Payment> pc = new Sidi.Persistence.Collection <Payment>(path); IList <Payment> p = c.GetPayments(); foreach (Payment i in p) { pc.Add(i); } foreach (Payment i in p) { Assert.AreEqual(true, pc.Contains(i)); } }
public void ReadAttributes3() { PictureMetaInformation mi = new PictureMetaInformation(FileUtil.BinFile(@"C:\Dokumente und Einstellungen\test\Eigene Dateien\Eigene Bilder\ref\IMG_0182.JPG")); mi.DumpProperties(Console.Out); }
public void ReadAttributes2() { PictureMetaInformation mi = new PictureMetaInformation(FileUtil.BinFile(@"test\MEMO0016.JPG")); mi.DumpProperties(Console.Out); }
public void ComparePixelData2() { AssertPixelDataEqual(origFile, FileUtil.BinFile(@"test\CIMG8451.JPG")); }
public void Setup() { origFile = FileUtil.BinFile(@"Test\test1.jpeg"); copyFile = origFile + ".copy.jpeg"; File.Copy(origFile, copyFile, true); }