public void TestMethod3() { Food fish = new Fish(); Food fried = new Fried(); Food sodawater = new SodaWater(); double tr = fried.cost() + fish.cost() + sodawater.cost(); Facade facade1 = new Facade(); double tr1 = facade1.BeefMenu(tr); Assert.AreEqual(tr1, 7.2); Assert.IsNotNull(tr); Assert.IsNotNull(tr1); }
public void TestMethod1() { Food chicken = new Chicken(); Food fried = new Fried(); Food sodawater = new SodaWater(); double d = fried.cost() + chicken.cost() + sodawater.cost(); Facade facade = new Facade(); double db = facade.ChickenMenu(d); Assert.AreEqual(db, 6.75); Assert.IsNotNull(d); Assert.IsNotNull(db); }