Пример #1
0
        public void ClampTestCriteriaSame()
        {
            var result = Formatting.Clamp(6, 60, 60);

            Assert.AreEqual(60, result);
        }
Пример #2
0
        public void ClampTestUnder()
        {
            var result = Formatting.Clamp(6, 50);

            Assert.AreEqual(50, result);
        }
Пример #3
0
        public void ClampTest()
        {
            var result = Formatting.Clamp(6);

            Assert.AreEqual(6, result);
        }
Пример #4
0
        public void ClampTestOver()
        {
            var result = Formatting.Clamp(106);

            Assert.AreEqual(100, result);
        }
Пример #5
0
        public void ClampTestInverted()
        {
            var result = Formatting.Clamp(6, 100, 0);

            Assert.AreEqual(6, result);
        }