public void SimpleFileSystemProvider_Exists_GivenInvalidFile_ShouldReturnFalse() { if (SkipTests) { Assert.Inconclusive("Problems with one-time setup prevented the test from running."); } else { SimpleFileSystemProvider sfs = new SimpleFileSystemProvider(); bool exists = sfs.Exists(FileSystemType.File, this._targetFileName + "test"); Assert.False(exists, "The file should not have existed and the method should have returned false."); } } // end test
public void SimpleFileSystemProvider_Exists_GivenInvalidDirectory_ShouldReturnFalse() { if (SkipTests) { Assert.Inconclusive("Problems with one-time setup prevented the test from running."); } else { SimpleFileSystemProvider sfs = new SimpleFileSystemProvider(); string directory = TestContext.CurrentContext.TestDirectory + "123"; bool exists = sfs.Exists(FileSystemType.Directory, directory); Assert.False(exists, "The directory should not have been found and the method should have returned false."); } } // end test