public void IsPathWatched_ReturnsTrueIfFileNameMatchesAFilterFalseOtherwise(Regex[] dummyFilters, string dummyPath, bool expectedResult) { // Arrange FileWatcher testSubject = CreateFileWatcher(filters: dummyFilters); // Act bool result = testSubject.IsPathWatched(dummyPath); // Assert Assert.Equal(expectedResult, result); }
public void IsPathWatched_ReturnsFalseIfPathIsNullWhitespaceOrAnEmptyString(string dummyPath) { // Arrange FileWatcher testSubject = CreateFileWatcher(); // Act bool result = testSubject.IsPathWatched(dummyPath); // Assert Assert.False(result); }