Beispiel #1
0
        public void Player_Win_130()
        {
            var win = new Win();

            var winnings = new List <Winnings>()
            {
                new Winnings()
                {
                    MatchLine = 4, Symbol = "S3"
                },
                new Winnings()
                {
                    MatchLine = 3, Symbol = "S5"
                },
                new Winnings()
                {
                    MatchLine = 5, Symbol = "S0"
                },
            };

            var betAmount = 1;

            var winAmount = win.ComputeWinnings(winnings, betAmount);

            Assert.Equal(130, winAmount);
        }
Beispiel #2
0
        public void Player_Win_1800()
        {
            var win = new Win();

            var winnings = new List <Winnings>()
            {
                new Winnings()
                {
                    MatchLine = 5, PayLine = 1, Symbol = "S0"
                },
                new Winnings()
                {
                    MatchLine = 5, PayLine = 1, Symbol = "S1"
                },
                new Winnings()
                {
                    MatchLine = 5, PayLine = 1, Symbol = "S2"
                },
                new Winnings()
                {
                    MatchLine = 5, PayLine = 1, Symbol = "S3"
                },
                new Winnings()
                {
                    MatchLine = 5, PayLine = 1, Symbol = "S4"
                },
                new Winnings()
                {
                    MatchLine = 5, PayLine = 1, Symbol = "S5"
                },
                new Winnings()
                {
                    MatchLine = 5, PayLine = 1, Symbol = "S6"
                },
                new Winnings()
                {
                    MatchLine = 5, PayLine = 1, Symbol = "S7"
                },
            };

            var betAmount = 1;

            var winAmount = win.ComputeWinnings(winnings, betAmount);

            Assert.Equal(1800, winAmount);
        }
Beispiel #3
0
        public void Player_Win_40()
        {
            var win = new Win();

            var winnings = new List <Winnings>()
            {
                new Winnings()
                {
                    MatchLine = 4, PayLine = 1, Symbol = "S4"
                },
            };

            var betAmount = 1;

            var winAmount = win.ComputeWinnings(winnings, betAmount);

            Assert.Equal(40, winAmount);
        }