Esempio n. 1
0
        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));
            }
        }
Esempio n. 2
0
            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);
            }
Esempio n. 3
0
            public void ReadAttributes2()
            {
                PictureMetaInformation mi = new PictureMetaInformation(FileUtil.BinFile(@"test\MEMO0016.JPG"));

                mi.DumpProperties(Console.Out);
            }
Esempio n. 4
0
 public void ComparePixelData2()
 {
     AssertPixelDataEqual(origFile, FileUtil.BinFile(@"test\CIMG8451.JPG"));
 }
Esempio n. 5
0
 public void Setup()
 {
     origFile = FileUtil.BinFile(@"Test\test1.jpeg");
     copyFile = origFile + ".copy.jpeg";
     File.Copy(origFile, copyFile, true);
 }