Esempio n. 1
0
        public void FruitMachine_Three_Cherry_Should_Return_50()
        {
            var score = new CalScore();

            string[]        reel  = new string[] { "Wild", "Star", "Bell", "Shell", "Seven", "Cherry", "Bar", "King", "Queen", "Jack" };
            List <string[]> reels = new List <string[]> {
                reel, reel, reel
            };

            int[] spins = new int[] { 5, 5, 5 };
            Assert.AreEqual(50, score.ShowResult(reels, spins));
        }
Esempio n. 2
0
        public void FruitMachine_Two_King_One_Bell_Should_Return_3()
        {
            var score = new CalScore();

            string[] reel1 = new string[] { "King", "Cherry", "Bar", "Jack", "Seven", "Queen", "Star", "Shell", "Bell", "Wild" };
            string[] reel2 = new string[] { "Bell", "Seven", "Jack", "Queen", "Bar", "Star", "Shell", "Wild", "Cherry", "King" };
            string[] reel3 = new string[] { "Wild", "King", "Queen", "Seven", "Star", "Bar", "Shell", "Cherry", "Jack", "Bell" }; List <string[]> reels = new List <string[]> {
                reel1, reel2, reel3
            };
            int[] spins = new int[] { 0, 0, 1 };
            Assert.AreEqual(3, score.ShowResult(reels, spins));
        }
Esempio n. 3
0
        public void FruitMachine_No_Matching_Items_Should_Return_0()
        {
            var score = new CalScore();

            string[]        reel1 = new string[] { "Wild", "Star", "Bell", "Shell", "Seven", "Cherry", "Bar", "King", "Queen", "Jack" };
            string[]        reel2 = new string[] { "Bar", "Wild", "Queen", "Bell", "King", "Seven", "Cherry", "Jack", "Star", "Shell" };
            string[]        reel3 = new string[] { "Bell", "King", "Wild", "Bar", "Seven", "Jack", "Shell", "Cherry", "Queen", "Star" };
            List <string[]> reels = new List <string[]> {
                reel1, reel2, reel3
            };

            int[] spins = new int[] { 5, 4, 3 };
            Assert.AreEqual(0, score.ShowResult(reels, spins));
        }