예제 #1
0
        public void IsInBetweenTrue()
        {
            var sol = new SolutionDay03();

            Assert.IsTrue(sol.IsInbetween(1, 3, 2));
            Assert.IsTrue(sol.IsInbetween(-3, 0, -2));
            Assert.IsTrue(sol.IsInbetween(10, 3, 4));
            Assert.IsTrue(sol.IsInbetween(10, -3, -2));
        }
예제 #2
0
        public void IsInBetweenFalse()
        {
            var sol = new SolutionDay03();

            Assert.IsFalse(sol.IsInbetween(1, 2, 3));
        }