public void GetBuildRuns() { BuildProject project = Instance.Create.BuildProject("My Project", "Project"); BuildRun run1 = project.CreateBuildRun("Run 1", new DateTime(2008, 1, 1)); BuildRun run2 = project.CreateBuildRun("Run 2", new DateTime(2008, 1, 2)); BuildRun run3 = project.CreateBuildRun("Run 3", new DateTime(2008, 1, 3)); run1.Reference = "A"; run2.Reference = "A"; run3.Reference = "B"; run1.Status.CurrentValue = "Passed"; run2.Status.CurrentValue = "Passed"; run3.Status.CurrentValue = "Failed"; run1.Save(); run2.Save(); run3.Save(); BuildRunFilter filter = new BuildRunFilter(); filter.References.Add("A"); filter.Status.Add("Passed"); ICollection <BuildRun> runs = project.GetBuildRuns(filter); CollectionAssert.AreEquivalent(new string[] { "Run 1", "Run 2" }, DeriveListOfNamesFromAssets(runs)); }