コード例 #1
0
        public void GetChoice_FetchPlayerTwoChoice_String()
        {
            //arrange
            RockPaperScissorsGame newGame = new RockPaperScissorsGame("Player 1", "Player 2");
            //act
            string result = newGame.GetPlayerTwoChoice();

            //assert
            Assert.AreEqual("", result);
        }
コード例 #2
0
        public void SetName_SetPlayerTwoChoice_void()
        {
            //arrange
            string choice = "Paper";
            RockPaperScissorsGame newGame = new RockPaperScissorsGame("Player 1", "Player 2");

            //act
            newGame.SetPlayerTwoChoice(choice);
            //assert
            Assert.AreEqual("Paper", newGame.GetPlayerTwoChoice());
        }