Esempio n. 1
0
 public void ReverseTest()
 {
     //check Reverse()
     Assert.ThrowsException <Exception>(() => (OwnMath.reverse(0)));
     Assert.AreEqual(0.5, OwnMath.reverse(2));
     Assert.AreEqual(-0.5, OwnMath.reverse(-2));
 }