public void ClampTestCriteriaSame() { var result = Formatting.Clamp(6, 60, 60); Assert.AreEqual(60, result); }
public void ClampTestUnder() { var result = Formatting.Clamp(6, 50); Assert.AreEqual(50, result); }
public void ClampTest() { var result = Formatting.Clamp(6); Assert.AreEqual(6, result); }
public void ClampTestOver() { var result = Formatting.Clamp(106); Assert.AreEqual(100, result); }
public void ClampTestInverted() { var result = Formatting.Clamp(6, 100, 0); Assert.AreEqual(6, result); }