public void AreNotEqualFailsWithStringPath() { using (TestDirectory td = new TestDirectory("ParentDirectory")) { DirectoryAssert.AreNotEqual(td.directoryName, td.directoryName); } }
public void AreNotEqualPassesIfOneIsNull() { using (TestDirectory td = new TestDirectory("ParentDirectory")) { DirectoryAssert.AreNotEqual(td.directoryInformation, null); } }
public void AreNotEqualFailsWithDirectoryInfos() { using (TestDirectory td = new TestDirectory("ParentDirectory")) { DirectoryAssert.AreNotEqual(td.directoryInformation, td.directoryInformation); } }
public void AreNotEqualPassesWithDirectoryInfos() { var expected = _goodDir1.Directory; var actual = _goodDir2.Directory; DirectoryAssert.AreNotEqual(expected, actual); }
public void AreNotEqualPassesWhenOneDoesNotExist() { using (TestDirectory td = new TestDirectory("ParentDirectory")) { DirectoryInfo actual = new DirectoryInfo("NotExistingDirectoryName"); DirectoryAssert.AreNotEqual(td.directoryInformation, actual); } }
public void DirectoryAssertsTest() { DirectoryInfo dirInfo1 = new DirectoryInfo(@"D:\development\Folder1"); DirectoryInfo dirInfo2 = new DirectoryInfo(@"D:\development\Folder2"); DirectoryAssert.AreNotEqual(dirInfo1, dirInfo2); DirectoryAssert.Exists(dirInfo1); }
public void AreNotEqualFailsWhenBothAreNull() { DirectoryInfo expected = null; DirectoryInfo actual = null; expectedMessage = " Expected: not null" + Environment.NewLine + " But was: null" + Environment.NewLine; DirectoryAssert.AreNotEqual(expected, actual); }
public void AreNotEqualPassesWithStringPath() { using (TestDirectory td1 = new TestDirectory("ParentDirectory1")) { using (TestDirectory td2 = new TestDirectory("ParentDirectory2")) { DirectoryAssert.AreNotEqual(td1.directoryName, td2.directoryName); } } }
public void AreNotEqualPassesWithDirectoryInfos() { using (TestDirectory td1 = new TestDirectory("ParentDirectory1")) { using (TestDirectory td2 = new TestDirectory("ParentDirectory2")) { DirectoryAssert.AreNotEqual(td1.directoryInformation, td2.directoryInformation); } } }
public void AreNotEqualFailsWithDirectoryInfos() { var expected = new DirectoryInfo(_goodDir1.ToString()); var actual = new DirectoryInfo(_goodDir1.ToString()); var expectedMessage = string.Format( " Expected: not equal to <{0}>{2} But was: <{1}>{2}", expected.FullName, actual.FullName, Environment.NewLine); var ex = Assert.Throws <AssertionException>(() => DirectoryAssert.AreNotEqual(expected, actual)); Assert.That(ex.Message, Is.EqualTo(expectedMessage)); }
public void AreNotEqualPassesIfActualIsNull() { DirectoryAssert.AreNotEqual(null, _goodDir1.Directory); }
public void AreNotEqualPassesIfExpectedIsNull() { DirectoryAssert.AreNotEqual(_goodDir1.Directory, null); }