Example #1
0
        public void CanWin_16_100_True()
        {
            var service = new CanWin();

            bool result = service.CanIWin(7, 21);

            Assert.IsTrue(result);
        }
Example #2
0
        public void CanWin_10_3_True()
        {
            var service = new CanWin();

            bool result = service.CanIWin(10, 3);

            Assert.IsTrue(result);
        }
Example #3
0
        public void CanWin_5_12_True()
        {
            var service = new CanWin();

            bool result = service.CanIWin(5, 12);

            Assert.IsTrue(result);
        }
Example #4
0
        public void CanWin_4_6_True()
        {
            var service = new CanWin();

            bool result = service.CanIWin(4, 6);

            Assert.IsTrue(result);
        }
Example #5
0
        public void CanWin_3_4_False()
        {
            var service = new CanWin();

            bool result = service.CanIWin(3, 4);

            Assert.IsFalse(result);
        }
Example #6
0
        public void CanWin_10_11_False()
        {
            var service = new CanWin();

            bool result = service.CanIWin(10, 11);

            Assert.IsFalse(result);
        }