Exemplo n.º 1
0
        public void InputEntireWord_CheckArrays_ReturnTotalScore()
        {
            string   userInput   = "Supercalifragilisticexpialidocious";
            Scrabble newScrabble = new Scrabble(userInput);
            int      userOutput  = newScrabble.Score();

            Assert.Equal(56, userOutput);
        }
Exemplo n.º 2
0
        public void InputMultipleVowels_CheckArrays_ReturnTotalScore()
        {
            string   userInput   = "uae";
            Scrabble newScrabble = new Scrabble(userInput);
            int      userOutput  = newScrabble.Score();

            Assert.Equal(3, userOutput);
        }
Exemplo n.º 3
0
        public void InputMultipleLetters_CheckArrays_ReturnTotalScore()
        {
            string   userInput   = "d'oge";
            Scrabble newScrabble = new Scrabble(userInput);
            int      userOutput  = newScrabble.Score();

            Assert.Equal(6, userOutput);
        }
Exemplo n.º 4
0
        public void InputLetter_InputA_ReturnLetterValue()
        {
            string   userInput   = "u";
            Scrabble newScrabble = new Scrabble(userInput);
            int      userOutput  = newScrabble.Score();

            Assert.Equal(1, userOutput);
        }