public void ClearAll_ClearsAllInstancesOfBasket_Int()
        {
            TamagotchiPet pet1 = new TamagotchiPet("Antony");
            TamagotchiPet pet2 = new TamagotchiPet("Jonathon");
            TamagotchiPet pet3 = new TamagotchiPet("Karamo");

            TamagotchiPet.ClearAll();
            List <TamagotchiPet> emptyList = new List <TamagotchiPet>()
            {
            };

            CollectionAssert.AreEqual(emptyList, TamagotchiPet.GetAll());
        }
Example #2
0
 public void Dispose()
 {
     TamagotchiPet.ClearAll();
 }