Ejemplo n.º 1
0
        public void Test_IsStrictBetween_BadArguments3()
        {
            double val  = 0;
            double from = 10;
            double to   = -1;

            var expected = false;
            var actual   = ValidationUtil.IsStrictBetween(val, from, to);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void Test_IsStrictBetween_EdgeRight()
        {
            double val  = 0.01;
            double from = 0.01;
            double to   = 5;

            var expected = false;
            var actual   = ValidationUtil.IsStrictBetween(val, from, to);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 3
0
        public void Test_IsStrictBetween_AllSame()
        {
            double val  = -10;
            double from = -10;
            double to   = -10;

            var expected = false;
            var actual   = ValidationUtil.IsStrictBetween(val, from, to);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 4
0
        public void Test_IsStrictBetween_OutsideRight2()
        {
            double val  = 0.02;
            double from = -10;
            double to   = -0.01;

            var expected = false;
            var actual   = ValidationUtil.IsStrictBetween(val, from, to);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 5
0
        public void Test_IsStrictBetween_OutsideLeft1()
        {
            double val  = -2;
            double from = 3.01;
            double to   = 5.2;

            var expected = false;
            var actual   = ValidationUtil.IsStrictBetween(val, from, to);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 6
0
        public void Test_IsStrictBetween_PositiveNegative()
        {
            double val  = 2;
            double from = -0.01;
            double to   = 2.01;

            var expected = true;
            var actual   = ValidationUtil.IsStrictBetween(val, from, to);

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 7
0
        public void Test_IsStrictBetween_Negative()
        {
            double val  = -20;
            double from = -50;
            double to   = -10;

            var expected = true;
            var actual   = ValidationUtil.IsStrictBetween(val, from, to);

            Assert.AreEqual(expected, actual);
        }