예제 #1
0
파일: IntMathTest.cs 프로젝트: zhabis/nfx
 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));
 }