public void AddBreadOrder_AddsArrayValues_7() { int [] breadArray = new int [3] { 2, 4, 1 }; Bread newBread = new Bread(breadArray); newBread.AddBreadOrder(); Assert.AreEqual(7, newBread.Order); }
public void SetPrice_Gives3rdBreadFree_20() { int [] breadArray = new int [3] { 2, 4, 1 }; Bread newBread = new Bread(breadArray); newBread.AddBreadOrder(); newBread.SetPrice(); Assert.AreEqual(25, newBread.BreadPrice); }