public void AddMany_ZeroAmountMustNotThrow_Test() { //Arrange List <int> list = new List <int>(); AmountOfItems <int> amountOfItems = ListBackedAmountOfItems <int> .Build(list); //Act amountOfItems.AddMany(int.MaxValue, 0); //Assert }
public void AddMany_NegativeAmountMustThrow_Test() { //Arrange List <string> list = new List <string> { "Apple", "Orange" }; AmountOfItems <string> amountOfItems = ListBackedAmountOfItems <string> .Build(list); //Act amountOfItems.AddMany("", -1); //Assert execption thrown }