public void TestEmptyRegexMatchesEmptyString() { IProjectFilter f = new FilterImpl("", ""); Assert.True(f.Matches("", "")); }
public void TestEmptyProjectRulesMatchTeam() { IProjectFilter f = new FilterImpl(null, ""); Assert.True(f.Matches("", "foo")); }
public void TestNullRulesMatchEmptyBoth() { IProjectFilter f = new FilterImpl(null, null); Assert.True(f.Matches("", "")); }
public void TestEmptyTeamRulesMatchTeamWithNullProject() { IProjectFilter f = new FilterImpl("", null); Assert.True(f.Matches("foo", null)); }
public void TestBothNullDoesNotMatch() { IProjectFilter f = new FilterImpl(".*", ".*"); Assert.False(f.Matches(null, null)); }
public void TestNullRulesMatchNullTeam() { IProjectFilter f = new FilterImpl(null, null); Assert.True(f.Matches(null, "foo")); }
public void TestNullProjectDoesNotMatch() { IProjectFilter f = new FilterImpl(".*", ".*"); Assert.False(f.Matches("foo", null)); }
public void TestNullTeamDoesNotMatch() { IProjectFilter f = new FilterImpl(".*", ".*"); Assert.False(f.Matches(null, "foo")); }
public void TestNoMatch89StyleProjectWrongBranch() { IProjectFilter f = new FilterImpl(@"\\usa$", "master"); Assert.False(f.Matches(@"\CxServer\Foo\bar\usa", "ORG_ProjectName_dev")); }
public void TestMatch89StyleProjectRightTeam() { IProjectFilter f = new FilterImpl(@"\\usa$", "master"); Assert.True(f.Matches(@"\CxServer\Foo\bar\usa", "ORG_ProjectName_master")); }
public void TestNoMatch89StyleTeam() { IProjectFilter f = new FilterImpl(@"\\usa$", null); Assert.False(f.Matches(@"\CxServer\Foo\bar\uk", null)); }