Beispiel #1
0
        public void PaperVsScissorsLose()
        {
            var user = new Paper();
            var computer = new Scissors();

            var result = user.Challenge(computer);

            Assert.AreEqual(GameResult.Lose, result);
        }
Beispiel #2
0
        public void PaperVsScissorsNotEqualWin()
        {
            var user = new Paper();
            var computer = new Scissors();

            var result = user.Challenge(computer);

            Assert.AreNotEqual(GameResult.Win, result);
        }
Beispiel #3
0
        public void PaperVsRockNotEqualTie()
        {
            var user = new Paper();
            var computer = new Rock();

            var result = user.Challenge(computer);

            Assert.AreNotEqual(GameResult.Tie, result);
        }
Beispiel #4
0
        public void PaperVsRockWin()
        {
            var user = new Paper();
            var computer = new Rock();

            var result = user.Challenge(computer);

            Assert.AreEqual(GameResult.Win, result);
        }
Beispiel #5
0
        public void PaperVsRockNotEqualLose()
        {
            var user     = new Paper();
            var computer = new Rock();

            var result = user.Challenge(computer);

            Assert.AreNotEqual(GameResult.Lose, result);
        }
Beispiel #6
0
        public void PaperVsScissorsNotEqaulTie()
        {
            var user     = new Paper();
            var computer = new Scissors();

            var result = user.Challenge(computer);

            Assert.AreNotEqual(GameResult.Tie, result);
        }
Beispiel #7
0
        public void PaperVsScissorsLose()
        {
            var user     = new Paper();
            var computer = new Scissors();

            var result = user.Challenge(computer);

            Assert.AreEqual(GameResult.Lose, result);
        }
Beispiel #8
0
        public void PaperVsPaperTie()
        {
            var user     = new Paper();
            var computer = new Paper();

            var result = user.Challenge(computer);

            Assert.AreEqual(GameResult.Tie, result);
        }
Beispiel #9
0
        public void PaperVsRockWin()
        {
            var user     = new Paper();
            var computer = new Rock();

            var result = user.Challenge(computer);

            Assert.AreEqual(GameResult.Win, result);
        }