public void AddPastryOrder_AddsArrayValues_7() { int [] pastryArray = new int [3] { 2, 4, 1 }; Pastry newPastry = new Pastry(pastryArray); newPastry.AddPastryOrder(); Assert.AreEqual(7, newPastry.Order); }
public void SetPrice_Every3rdpastry1Dollar_17() { int [] pastryArray = new int [3] { 3, 6, 1 }; Pastry newPastry = new Pastry(pastryArray); newPastry.AddPastryOrder(); newPastry.SetPrice(); Assert.AreEqual(17, newPastry.PastryPrice); }