public void ShouldCheckDirectoryPath(string directory, string path, bool expected) { // Given DirectoryPath directoryPath = new DirectoryPath(directory); FilePath filePath = new FilePath(path); // When bool result = directoryPath.ContainsDescendant(filePath); // Then result.ShouldBe(expected); }