public void Does_not_match_tasks_if_namespace_incorrect() { var matcher = new NamespaceMatcher("test", "No.Such.Tasks"); var matchResult = matcher.TryMatch(PersistentTask.Instance); Assert.That(matchResult.Matched, Is.False); }
public void Matches_tasks_by_filter(string namespaceFilter) { var matcher = new NamespaceMatcher("test", namespaceFilter); var matchResult = matcher.TryMatch(PersistentTask.Instance); Assert.That(matchResult.Matched, Is.True); }