public AddBranch ( string branches ) : void | ||
branches | string | |
Результат | void |
public void TestSingleBranch() { var fb = new FindFilterBuilder(); fb.AddBranch(new[] {"/main"}); var actual = fb.ToString(); Assert.AreEqual("where branch = '/main'", actual); }
public void TestUnexpectedWildCardThrowsException() { var fb = new FindFilterBuilder(); fb.AddBranch(new[] {"Foo*"}); }
public void TestTwoBranches() { var fb = new FindFilterBuilder(); fb.AddBranch(new[] {"/main", "/main/dev"}); var actual = fb.ToString(); Assert.AreEqual("where (branch = '/main' or branch = '/main/dev')", actual); }