DirectoryExists() public method

public DirectoryExists ( string path ) : bool
path string
return bool
        public void DirectoryExistsShouldReturnTrueWithDeepPath()
        {
            var fileSystem = new FakeFileSystem(@"C:\temp\repo");
            fileSystem.Files.Add(@"dir1\dir2\dir3\dir4\file1.txt");

            Assert.True(fileSystem.DirectoryExists(@"dir1\dir2\dir3"));
        }
        public void DirectoryExistsShouldReturnTrueIfExistsCaseInsensitive()
        {
            var fileSystem = new FakeFileSystem(@"C:\temp\repo");
            fileSystem.Files.Add("Matt\\file1.txt");
            fileSystem.Files.Add("Matt\\file2.txt");
            fileSystem.Files.Add("Matt\\file3.txt");
            fileSystem.Files.Add("Matt2\\file3.txt");

            Assert.True(fileSystem.DirectoryExists("MATT"));
        }
        public void DirectoryExistsShouldReturnFalseIfDoesNotExist()
        {
            var fileSystem = new FakeFileSystem(@"C:\temp\repo");
            fileSystem.Files.Add("Matt\\file1.txt");
            fileSystem.Files.Add("Matt\\file2.txt");
            fileSystem.Files.Add("Matt\\file3.txt");
            fileSystem.Files.Add("Matt2\\file3.txt");

            Assert.False(fileSystem.DirectoryExists("Blah"));
        }