static void Main(string[] args) { MyMath inst = new MyMath(); Console.WriteLine("Result: {0}", inst.Multi(5, 6)); Console.WriteLine(); Console.WriteLine("Hit 'Enter' lo leave..."); Console.ReadLine(); }
public void MathStatusTest() { MyMath target = new MyMath(); // TODO: Initialize to an appropriate value bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.MathStatus(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void MultiTest() { MyMath target = new MyMath(); // TODO: Initialize to an appropriate value int x = 2; // TODO: Initialize to an appropriate value int y = 3; // TODO: Initialize to an appropriate value double expected = 6; // TODO: Initialize to an appropriate value double actual; actual = target.Multi(x, y); Assert.AreEqual(expected, actual); Assert.Inconclusive(string.Format("Verify the correctness of MultiTest(){0} method.", arg0: "ARG0")); }
public void SubstTest() { MyMath target =new MyMath(); int x = 2; int y = 2; int exp = 0; int act; act = target.Subst(x, y); Assert.AreEqual(exp, act); Assert.Inconclusive("Verify the correctness of SubstTest() method."); }
public void MyMathConstructorTest() { MyMath target = new MyMath(); Assert.Inconclusive("TODO: Implement code to verify target"); }
public void SumTest() { MyMath target = new MyMath(); // TODO: Initialize to an appropriate value int x = 3; // TODO: Initialize to an appropriate value int y = 4; // TODO: Initialize to an appropriate value int expected = 7; // TODO: Initialize to an appropriate value int actual; actual = target.Sum(x, y); Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of SumTest() method."); }