public void TestMethodAssertFilesDiff04()
        {
            const string UnitTestFile1 = @"TestData\CaptureSame01.jpg";
            const string UnitTestFile2 = @"TestData\CaptureSame02.jpg";

            Assert.IsTrue(StfAssert.FilesDoNotDiffer("TestStepName 1", UnitTestFile1, UnitTestFile2));
            Assert.IsFalse(StfAssert.FilesDoDiffer("TestStepName 1", UnitTestFile1, UnitTestFile2));
        }
        public void TestMethodAssertFilesDiff03()
        {
            const string UnitTestFile1 = @"TestData\zerofile.txt";
            const string UnitTestFile2 = @"TestData\OneCharFile.txt";

            Assert.IsTrue(StfAssert.FilesDoDiffer("TestStepName 1", UnitTestFile1, UnitTestFile2));
            Assert.IsFalse(StfAssert.FilesDoNotDiffer("TestStepName 1", UnitTestFile1, UnitTestFile2));
        }
        public void TestMethodAssertFilesDiffer01()
        {
            const string UnitTestFile1 = @"TestData\TestMethodAssertFileNotExists1.xml";
            const string UnitTestFile2 = @"TestData\TestMethodAssertFileNotExists2.xml";

            Assert.IsTrue(StfAssert.FilesDoDiffer("TestStepName 1", UnitTestFile1, UnitTestFile2));
            Assert.IsFalse(StfAssert.FilesDoNotDiffer("TestStepName 1", UnitTestFile1, UnitTestFile2));

            // null and empty strings returns false
            Assert.IsFalse(StfAssert.FileContains("filename1 null, filename2 Null", null, null));
            Assert.IsFalse(StfAssert.FileContains("filename1 null, filename2 Empty", null, string.Empty));
            Assert.IsFalse(StfAssert.FileContains("filename1 null, filename2 notNull", null, UnitTestFile1));
            Assert.IsFalse(StfAssert.FileContains("filename1 Empty, filename2 Null", string.Empty, null));
            Assert.IsFalse(StfAssert.FileContains("filename1 Empty, filename2 Empty", string.Empty, string.Empty));
            Assert.IsFalse(StfAssert.FileContains("filename1 Empty, filename2 notNull", string.Empty, UnitTestFile1));
            Assert.IsFalse(StfAssert.FileContains("filename1 null, filename2 Null", UnitTestFile1, null));
            Assert.IsFalse(StfAssert.FileContains("filename1 null, filename2 Empty", UnitTestFile1, string.Empty));
            Assert.IsFalse(StfAssert.FileContains("filename1 null, filename2 notNull", UnitTestFile1, "A string"));
        }
        public void TestMethodAssertFilesDifferNullAndEmpty()
        {
            const string UnitTestFile1 = @"TestData\TestMethodAssertFileNotExists1.xml";

            // null and empty strings returns false
            Assert.IsFalse(StfAssert.FilesDoDiffer("filename1 null,    filename2 Null", null, null));
            Assert.IsFalse(StfAssert.FilesDoDiffer("filename1 null,    filename2 Empty", null, string.Empty));
            Assert.IsFalse(StfAssert.FilesDoDiffer("filename1 null,    filename2 notNull", null, UnitTestFile1));
            Assert.IsFalse(StfAssert.FilesDoDiffer("filename1 Empty,   filename2 Null", string.Empty, null));
            Assert.IsFalse(StfAssert.FilesDoDiffer("filename1 Empty,   filename2 Empty", string.Empty, string.Empty));
            Assert.IsFalse(StfAssert.FilesDoDiffer("filename1 Empty,   filename2 notNull", string.Empty, UnitTestFile1));
            Assert.IsFalse(StfAssert.FilesDoDiffer("filename1 notNull, filename2 Null", UnitTestFile1, null));
            Assert.IsFalse(StfAssert.FilesDoDiffer("filename1 notNull, filename2 Empty", UnitTestFile1, string.Empty));

            Assert.IsFalse(StfAssert.FilesDoNotDiffer("filename1 null,    filename2 Null", null, null));
            Assert.IsFalse(StfAssert.FilesDoNotDiffer("filename1 null,    filename2 Empty", null, string.Empty));
            Assert.IsFalse(StfAssert.FilesDoNotDiffer("filename1 null,    filename2 notNull", null, UnitTestFile1));
            Assert.IsFalse(StfAssert.FilesDoNotDiffer("filename1 Empty,   filename2 Null", string.Empty, null));
            Assert.IsFalse(StfAssert.FilesDoNotDiffer("filename1 Empty,   filename2 Empty", string.Empty, string.Empty));
            Assert.IsFalse(StfAssert.FilesDoNotDiffer("filename1 Empty,   filename2 notNull", string.Empty, UnitTestFile1));
            Assert.IsFalse(StfAssert.FilesDoNotDiffer("filename1 notNull, filename2 Null", UnitTestFile1, null));
            Assert.IsFalse(StfAssert.FilesDoNotDiffer("filename1 notNull, filename2 Empty", UnitTestFile1, string.Empty));
        }