public void CanViewOrder() { var order1 = new Order(); var goldjalapenos = new Topping("goldjalapenos", 250m); var jalaList = $"Order "; for (int i = 0; i <= 3; i++) { order1.AddToOrderItems(goldjalapenos); jalaList = jalaList + " " + goldjalapenos.ToString(); } var expected = jalaList; var actual = order1.ToString(); Assert.True(expected == actual); }
public override string ToString() { return(base.ToString() + ", " + Topping.ToString()); }
public void Test_Topping_Name() { Assert.Equal("Test", value.ToString()); }