Beispiel #1
0
        public void InfoSaveTest()
        {
            doc = SetupForSavingTests();

            string imagepath = doc.SaveImage();

            Assert.IsTrue(File.Exists(imagepath));
        }
Beispiel #2
0
        public void InfoTypeTest()
        {
            doc = SetupForSavingTests();

            string imagepath = doc.SaveImage();

            Assert.IsTrue(Directory.Exists(doc.GetDestination()));
        }
Beispiel #3
0
        public void CheckNameUniqueTest()
        {
            SetupForSavingTests();

            doc.SaveImage();

            Assert.IsFalse(doc.CheckNameUnique());
        }
Beispiel #4
0
        public void DeleteDirectory()
        {
            doc = SetupForSavingTests();

            string docpath = doc.SaveImage();

            DocInfo newdoc = new DocInfo(docpath);

            newdoc.DeleteSourceFile();

            Assert.IsFalse(File.Exists(docpath));
        }