public void AddToList_ReturnsList_List() { int testEntry = 1; Pastry newPastry = new Pastry(testEntry); List <int> testList = new List <int> { 1 }; List <int> result = newPastry.AddToList(); CollectionAssert.AreEqual(testList, result); }
public void CalculateCost_ReturnsCost_Int() { int testPastry = 7; Pastry newPastry = new Pastry(testPastry); newPastry.AddToList(); int testCost = 12; int result = newPastry.CalculateCost(); Assert.AreEqual(testCost, result); }