예제 #1
0
        public void KidsWithCandiesTest2()
        {
            GreatestCandies candies = new GreatestCandies();
            IList <bool>    res     = candies.KidsWithCandies(new int[] { 4, 2, 1, 1, 2 }, 1);

            Assert.IsTrue(res[0] == true);
        }
예제 #2
0
        public void KidsWithCandiesTest3()
        {
            GreatestCandies candies = new GreatestCandies();
            IList <bool>    res     = candies.KidsWithCandies(new int[] { 12, 1, 12 }, 10);

            Assert.IsTrue(res[1] == false);
        }
예제 #3
0
        public void KidsWithCandiesTest()
        {
            GreatestCandies candies = new GreatestCandies();
            IList <bool>    res     = candies.KidsWithCandies(new int[] { 2, 3, 5, 1, 3 }, 3);

            Assert.IsTrue(res[3] == false);
        }