public void CalculateAbs() { Assert.AreEqual(0, Numbers.Abs(0)); Assert.AreEqual(1, Numbers.Abs(1)); Assert.AreEqual(2, Numbers.Abs(-2)); Assert.AreEqual(1.23, Numbers.Abs(1.23)); Assert.AreEqual(2.34, Numbers.Abs(-2.34)); }
public void CalculateAbs() { Assert.AreEqual(0, Numbers.Abs(0)); Assert.AreEqual(1, Numbers.Abs(1)); Assert.AreEqual(2, Numbers.Abs(-2)); Assert.AreEqual(1.23, Numbers.Abs(1.23)); Assert.AreEqual(2.34, Numbers.Abs(-2.34)); }