Skip to content

Commit

Permalink
FileExists no longer checks directories
Browse files Browse the repository at this point in the history
FileExists shouldn't return true if it's called with a directory path.
  • Loading branch information
tillig committed May 19, 2015
1 parent fa8ed80 commit 8bdf955
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TestingHelpers/MockFileSystem.cs
Expand Up @@ -162,7 +162,7 @@ public bool FileExists(string path)
path = FixPath(path);

lock (files)
return files.ContainsKey(path);
return files.ContainsKey(path) && !files[path].IsDirectory;
}

public IEnumerable<string> AllPaths
Expand Down Expand Up @@ -192,4 +192,4 @@ public IEnumerable<string> AllDirectories
}
}
}
}
}

0 comments on commit 8bdf955

Please sign in to comment.