Example #1
0
        public void ReturnsATieTest()
        {
            //Arrange
            RoShamBo roShamBo  = new RoShamBo();
            var      playerOne = "Paper";
            var      playerTwo = "Paper";
            var      expected  = "Both players played the same. It's a tie.";

            //Act
            var actual = roShamBo.Play(playerOne, playerTwo);

            //Assert
            Assert.Equal(expected, actual);
        }
Example #2
0
        public void RockBeatsScissorsTest()
        {
            //Arrange
            RoShamBo roShamBo  = new RoShamBo();
            var      playerOne = "Rock";
            var      playerTwo = "Scissors";
            var      expected  = "Rock beats Scissors";

            //Act
            var actual = roShamBo.Play(playerOne, playerTwo);

            //Assert
            Assert.Equal(expected, actual);
        }
Example #3
0
        public void PaperBeatsRockTest()
        {
            //Arrange
            RoShamBo roShamBo  = new RoShamBo();
            var      playerOne = "Paper";
            var      playerTwo = "Rock";
            var      expected  = "Paper beats Rock";

            //Act
            var actual = roShamBo.Play(playerOne, playerTwo);

            //Assert
            Assert.Equal(expected, actual);
        }