void TestPriority(Goal expected, Goal not, string expectedPriority) { GoalFilter filter = new GoalFilter(); filter.Project.Add(SandboxProject); filter.Priority.Add(expectedPriority); ResetInstance(); expected = Instance.Get.GoalByID(expected.ID); not = Instance.Get.GoalByID(not.ID); ICollection <Goal> results = SandboxProject.GetGoals(filter); Assert.IsTrue(FindRelated(expected, results), "Expected to find goal that matched filter."); Assert.IsFalse(FindRelated(not, results), "Expected to NOT find goal that doesn't match filter."); foreach (Goal result in results) { Assert.AreEqual(expectedPriority, result.Priority.CurrentValue); } }