Skip to content
Permalink
Browse files

DirectoryWatcherBase - UpdateZeroSubscriptions

  • Loading branch information
bobbymcr committed Feb 10, 2020
1 parent 2facdae commit afed17df0c1d2230e66aa4a6c15602953d55be1b
@@ -32,12 +32,26 @@ public void CreateAndDispose()
act.Should().NotThrow();
}

[TestMethod]
public void UpdateZeroSubscriptions()
{
FakeDirectoryWatcher watcher = new FakeDirectoryWatcher(new DirectoryInfo(@"X:\root"));

Action act = () => watcher.Update(@"X:\root\file1.txt");

act.Should().NotThrow();
}

private sealed class FakeDirectoryWatcher : DirectoryWatcherBase
{
public FakeDirectoryWatcher(DirectoryInfo path)
: base(path)
{
}

public void Update(string fullPath)
{
}
}
}
}

0 comments on commit afed17d

Please sign in to comment.
You can’t perform that action at this time.