public void AbsTest() { //check Abs(int a) Assert.AreEqual(10, OwnMath.Abs(10)); Assert.AreEqual(10, OwnMath.Abs(-10)); Assert.AreEqual(0, OwnMath.Abs(0)); //check Abs(double a) Assert.AreEqual(10.5, OwnMath.Abs(10.5)); Assert.AreEqual(10.5, OwnMath.Abs(-10.5)); }