public void SimpleFileSystemProvider_FindDirectory_WithInvalidDirectory_ShouldNotReturnDirectoryInfo() { if (SkipTests) { Assert.Inconclusive("Problems with one-time setup prevented the test from running."); } else { SimpleFileSystemProvider sfs = new SimpleFileSystemProvider(); DirectoryInfo info = null; info = sfs.FindDirectory("Empty"); Assert.Null(info, "Directory information should have been returned."); } } // end test
public void SimpleFileSystemProvider_FindDirectory_WithValidDirectory_ShouldReturnDirectoryInfo() { if (SkipTests) { Assert.Inconclusive("Problems with one-time setup prevented the test from running."); } else { SimpleFileSystemProvider sfs = new SimpleFileSystemProvider(); DirectoryInfo info = null; info = sfs.FindDirectory(TestContext.CurrentContext.TestDirectory); Assert.NotNull(info, "Directory information should have been returned."); Assert.AreEqual(TestContext.CurrentContext.TestDirectory, info.ToString(), "The directory was not the same as the one requested."); } } // end test