2 instantiations of DirectoryInfoAssertions
Microsoft.NET.TestFramework (2)
Assertions\DirectoryInfoAssertions.cs (1)
89return new AndConstraint<DirectoryInfoAssertions>(new DirectoryInfoAssertions(dir ?? new DirectoryInfo(expectedDir)));
Assertions\DirectoryInfoExtensions.cs (1)
10return new DirectoryInfoAssertions(dir);
29 references to DirectoryInfoAssertions
Microsoft.NET.TestFramework (29)
Assertions\DirectoryInfoAssertions.cs (28)
17public AndConstraint<DirectoryInfoAssertions> Exist() 20return new AndConstraint<DirectoryInfoAssertions>(this); 23public AndConstraint<DirectoryInfoAssertions> NotExist() 26return new AndConstraint<DirectoryInfoAssertions>(this); 29public AndConstraint<DirectoryInfoAssertions> HaveFile(string expectedFile) 33return new AndConstraint<DirectoryInfoAssertions>(this); 36public AndConstraint<DirectoryInfoAssertions> NotHaveFile(string expectedFile) 40return new AndConstraint<DirectoryInfoAssertions>(this); 43public AndConstraint<DirectoryInfoAssertions> HaveFiles(IEnumerable<string> expectedFiles) 50return new AndConstraint<DirectoryInfoAssertions>(this); 53public AndConstraint<DirectoryInfoAssertions> HaveFilesMatching( 63return new AndConstraint<DirectoryInfoAssertions>(this); 66public AndConstraint<DirectoryInfoAssertions> NotHaveFiles(IEnumerable<string> expectedFiles) 73return new AndConstraint<DirectoryInfoAssertions>(this); 76public AndConstraint<DirectoryInfoAssertions> NotHaveFilesMatching(string expectedFilesSearchPattern, SearchOption searchOption) 80return new AndConstraint<DirectoryInfoAssertions>(this); 84public AndConstraint<DirectoryInfoAssertions> HaveDirectory(string expectedDir) 89return new AndConstraint<DirectoryInfoAssertions>(new DirectoryInfoAssertions(dir ?? new DirectoryInfo(expectedDir))); 92public AndConstraint<DirectoryInfoAssertions> OnlyHaveFiles(IEnumerable<string> expectedFiles, SearchOption searchOption = SearchOption.AllDirectories) 105return new AndConstraint<DirectoryInfoAssertions>(this); 108public AndConstraint<DirectoryInfoAssertions> BeEmpty() 112return new AndConstraint<DirectoryInfoAssertions>(this); 115public AndConstraint<DirectoryInfoAssertions> NotBeEmpty() 119return new AndConstraint<DirectoryInfoAssertions>(this); 122public AndConstraint<DirectoryInfoAssertions> NotExist(string because = "", params object[] reasonArgs) 126return new AndConstraint<DirectoryInfoAssertions>(this); 129public AndConstraint<DirectoryInfoAssertions> NotHaveSubDirectories(params string[] notExpectedSubdirectories) 152return new AndConstraint<DirectoryInfoAssertions>(this);
Assertions\DirectoryInfoExtensions.cs (1)
8public static DirectoryInfoAssertions Should(this DirectoryInfo dir)