public void FileCompareDifExt()
        {
            string fileOne = CheckFile.GetPath(TestContext.DataRow[FILE_TO_COMPARE_ONE].ToString());
            string fileTwo = CheckFile.GetPath(TestContext.DataRow[COMPARE_FILE].ToString());

            Assert.IsFalse(CheckFile.CompareFile(fileOne, fileTwo), "File Compare Funct");
        }
        public void FileCompareSameExtAreEqual()
        {
            string fileOne = CheckFile.GetPath(TestContext.DataRow[FILE_TO_COMPARE_ONE].ToString());
            string fileTwo = CheckFile.GetPath(TestContext.DataRow[FILE_TO_COMPARE_ONE].ToString());

            Assert.IsTrue(CheckFile.CompareFile(@fileOne, @fileTwo), "File Compare Funct");
        }
        public void GetPathTestPass()
        {
            string path    = "..\\..\\EncryptionTestFiles\\EncryptedPngOne.png";
            string retPath = CheckFile.GetPath(path);

            Assert.AreEqual(Directory.GetParent(path).FullName + path, CheckFile.GetPath(path));
            Assert.IsTrue(File.Exists(retPath), " file does not exsist");
        }
Ejemplo n.º 4
0
 public void TestResourceDifFile()
 {
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[FILE_TO_COMPRESS + ONE_KEYWORD].ToString())));
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[FILE_TO_COMPRESS + TWO_KEYWORD].ToString())));
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[COMPRESSED_FILE + ONE_KEYWORD].ToString())));
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[COMPRESSED_FILE + TWO_KEYWORD].ToString())));
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[DECOMPRESSED_FILE + ONE_KEYWORD].ToString())));
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[DECOMPRESSED_FILE + TWO_KEYWORD].ToString())));
 }
Ejemplo n.º 5
0
 public void TestResourceLocations()
 {
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow["file"].ToString())));
 }
Ejemplo n.º 6
0
 public void TestResourceOneFile()
 {
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[FILE_TO_COMPRESS].ToString())));
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[COMPRESSED_FILE].ToString())));
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[DECOMPRESSED_FILE].ToString())));
 }
 public void testResourceLocations()
 {
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[RESOURCE_FILE].ToString())));
     Assert.AreNotEqual("", TestContext.DataRow["type"].ToString());
 }
        public void FileCompareSameFile()
        {
            string fileOne = CheckFile.GetPath(TestContext.DataRow[RESOURCE_FILE].ToString());

            Assert.IsTrue(CheckFile.CompareFile(fileOne, fileOne), "File Compare Funct");
        }
 public void GetPathExceptionThrown()
 {
     CheckFile.GetPath("This is a test");
 }
 public void testResourceParseOneFile()
 {
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[FILE_TO_COMPARE_ONE].ToString())));
     Assert.IsTrue(File.Exists(CheckFile.GetPath(TestContext.DataRow[COMPARE_FILE].ToString())));
 }