Ejemplo n.º 1
0
        public void GetChoice_FetchPlayerOneChoice_String()
        {
            //arrange
            RockPaperScissorsGame newGame = new RockPaperScissorsGame("Player 1", "Player 2");
            //act
            string result = newGame.GetPlayerOneChoice();

            //assert
            Assert.AreEqual("", result);
        }
Ejemplo n.º 2
0
        public void SetName_SetPlayerOneChoice_void()
        {
            //arrange
            string choice = "Paper";
            RockPaperScissorsGame newGame = new RockPaperScissorsGame("Player 1", "Player 2");

            //act
            newGame.SetPlayerOneChoice(choice);
            //assert
            Assert.AreEqual("Paper", newGame.GetPlayerOneChoice());
        }