private static void TestDrink() { var juice = new Juice("Orange", "made from oranges"); var beer = new Beer("Budweiser", "5% alcohol"); var soda = new Soda("Pepsi"); var drinks = new List <Drink>() { juice, beer, soda }; drinks.ForEach(dd => { Console.WriteLine(dd.Description); }); }
public void TestPearJuice_FruitType_IsSame() { var juice = new Juice("Pear", "my pear juice"); Assert.Equal("Pear", juice.Name); }
public void TestGrapeJuice_Carbonated_IsFalse() { var juice = new Juice("Grape", "my grape juice"); Assert.Equal(false, juice.IsCarbonated); }