Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }