public void InventoryContainsTest() { var shark = new Library.Animal(); shark.Name = "shark"; var nyc = new Library.Store(); nyc.Inventory = new Dictionary <Library.Animal, int>(); nyc.AddToInventory(shark, 20); var actual = nyc.InInventory(shark); Assert.True(actual == true); }
public void AddInventoryTestFail() { var shark = new Library.Animal(); shark.Name = "shark"; var nyc = new Library.Store(); nyc.Inventory = new Dictionary <Library.Animal, int>(); nyc.AddToInventory(shark, 0); var actual = nyc.InInventory(shark); Assert.True(actual == false); }