Example #1
0
 public void Test_CheckBoundsF()
 {
     Assert.AreEqual(5.11f, Algorithms.CheckBounds(5.11f, 3.1f, 11.7f));
     Assert.AreEqual(3.1f, Algorithms.CheckBounds(2f, 3.1f, 11.7f));
     Assert.AreEqual(11.7f, Algorithms.CheckBounds(15f, 3.1f, 11.7f));
 }
Example #2
0
 public void Test_CheckBoundsI()
 {
     Assert.AreEqual(5, Algorithms.CheckBounds(5, 3, 11));
     Assert.AreEqual(3, Algorithms.CheckBounds(2, 3, 11));
     Assert.AreEqual(11, Algorithms.CheckBounds(15, 3, 11));
 }