public override void AddLogic() { X_h x1 = new X_h(5); X_h x2 = new X_h(7); var a = x1.Compute(4); var b = x1.Compute(4.0); var c = x2.Compute(3.0); var d = x1.Compute("hello"); var e = x2.Compute("ciao"); this.ReturnsAnswer(d.ToString()); System.Console.WriteLine(this.ReturnCorrect()); }
public override void AddMainLogic() { X xInstance = new X(); xInstance.AddLogic(); Compute computeInstance = new Compute(); computeInstance.AddLogic(); StudentPolymorphism studentPolymorphismInstance = new StudentPolymorphism(); studentPolymorphismInstance.AddLogic(); Simple simpleInstance = new Simple(); simpleInstance.AddLogic(); X_h x_hInstance = new X_h(); x_hInstance.AddLogic(); Person personInstance = new Person(); personInstance.AddLogic(); Shape shapeInstance = new Shape(); shapeInstance.AddLogic(); Tool toolInstace = new Tool(); toolInstace.AddLogic(); A aInstance = new A(); aInstance.AddLogic(); CarPolymorphism carInstance = new CarPolymorphism(); carInstance.AddLogic(); StudentPolymorphism3 studentPolymorphism3Instance = new StudentPolymorphism3(); studentPolymorphism3Instance.AddLogic(); Fighter fighterInstance = new Fighter(); fighterInstance.AddLogic(); }