public void GetChargeCodeByActiveTest() { TicketChargeCodeCollection tempChargeCodeCol = new TicketChargeCodeCollection(); //Create a new ChargeCode, insert it into the database, and then insert it into the ChargeCode Collection. for (int x = 0; x < 10; x++) { TicketChargeCode tempMod = NewChargeCode(); tempMod.IsActive = false; InsertChargeCodeIntoDatabase(tempMod); tempChargeCodeCol.Add(tempMod); } //Get all ChargeCodes... TicketChargeCodeCollection tempChargeCodeCol2 = HelpdeskService.GetAllChargeCodeByActive(false); foreach (TicketChargeCode temp in tempChargeCodeCol) { Assert.IsTrue(tempChargeCodeCol2.Contains(temp)); } Assert.IsTrue(tempChargeCodeCol2.Count >= tempChargeCodeCol.Count); }