public void ObjectInitializers() { var myDinner = new Dinner() { MainCourse = "Tacos", Drinks = "Water", HasSides = false, Desert = "Cake" }; Assert.Equal("For Dinner you will have Tacos with Cake.", myDinner.GetPlan()); }
public void ObjectInitializers() { var myDinner = new Dinner() { MainCourse = "Tacos", Drinks = "Beer", Desert = "Another Beer" }; //myDinner.MainCourse = "Tacos"; //myDinner.Drinks = "Beer"; //myDinner.HasSides = false; //myDinner.Desert = "Another Beer"; Assert.Equal("For Dinner you will have Tacos With Another Beer", myDinner.GetPlan()); }