public void RemoveItemGroupsWithMatchingCondition() { Project p = new Project(); BuildItemGroup buildItemGroup = p.AddNewItemGroup(); buildItemGroup.Condition = "true"; p.AddNewItemGroup(); Assertion.AssertEquals(2, p.ItemGroups.Count); p.RemoveItemGroupsWithMatchingCondition("true"); Assertion.AssertEquals(1, p.ItemGroups.Count); }