Esempio n. 1
0
 public static void AssertItemsWithExistsStatus(ItemType[] itemsToAssert, int expectedItemCount, Type expectedTypeInstanceOfItems)
 {
     Assert.AreEqual(expectedItemCount, itemsToAssert.Count(), "Unexpected system data items count was found.");
     foreach (var itemType in itemsToAssert) 
     {
         Assert.IsInstanceOfType(itemType, expectedTypeInstanceOfItems, "An item with unexpected instance type was found.");
         Assert.AreEqual(StatusEnumeration.exists, itemType.status, "An item with unexpected status was found.");
     }
 }
 private void DoBasicAssert(ItemType[] itemsToCollect, int expectedItemsCount, Type expectedInstanceOfItemTypes)
 {
     Assert.IsNotNull(itemsToCollect);
     Assert.AreEqual(expectedItemsCount, itemsToCollect.Count());
     foreach (var item in itemsToCollect)
         Assert.IsInstanceOfType(item, expectedInstanceOfItemTypes);
 }