Example #1
0
 public void MinMaxTest()
 {
     Aver.AreEqual(1, IntMath.MinMax(-1, 1, 3));
     Aver.AreEqual(2, IntMath.MinMax(2, 2, 3));
     Aver.AreEqual(3, IntMath.MinMax(2, 3, 3));
     Aver.AreEqual(-1, IntMath.MinMax(-1, -10, 3));
     Aver.AreEqual(3, IntMath.MinMax(-1, 5, 3));
     Aver.Throws <NFXException>(() => IntMath.MinMax(10, 5, 3));
 }