public AddChangeset ( int changesets ) : void | ||
changesets | int | |
Результат | void |
public void TestMultipleProperties() { var fb = new FindFilterBuilder(); fb.AddOwner(new[] {"sgustafsson", "jlindqvist"}); fb.AddChangeset(new[] {2, 5, 7}); var actual = fb.ToString(); Assert.AreEqual( "where (owner = 'sgustafsson' or owner = 'jlindqvist') and (changeset = 2 or changeset = 5 or changeset = 7)", actual); }
public void TestMultiplePropertiesWithRepositories() { var fb = new FindFilterBuilder(); fb.AddChangeset(new[] {2, 5, 7}); fb.AddDateRange(DateTime.MinValue, new DateTime(2013, 05, 05, 0, 0, 0, DateTimeKind.Utc)); fb.AddRepositoryString(new[] {"repo1", "repo2"}); var actual = fb.ToString(); Assert.AreEqual( "where (changeset = 2 or changeset = 5 or changeset = 7) and date <= '2013-05-05T00:00:00.0000000Z' on repositories 'repo1', 'repo2'", actual); }