コード例 #1
0
        public void ScrabbleScoreGenerator_ForUserInputAbdfkjq_33()
        {
            string        userInput         = "abdfkjq";
            ScrabbleScore testScrabbleScore = new ScrabbleScore(userInput);
            int           result            = testScrabbleScore.ScrabbleScoreGenerator();
            int           expectedResult    = 33;

            Assert.Equal(expectedResult, result);
        }
コード例 #2
0
        public void ScrabbleScoreGenerator_ForUserInputNumber_0()
        {
            string        userInput         = "42";
            ScrabbleScore testScrabbleScore = new ScrabbleScore(userInput);
            int           result            = testScrabbleScore.ScrabbleScoreGenerator();
            int           expectedResult    = 0;

            Assert.Equal(expectedResult, result);
        }
コード例 #3
0
        public void ScrabbleScoreGenerator_ForUserInputBody_10()
        {
            string        userInput         = "body";
            ScrabbleScore testScrabbleScore = new ScrabbleScore(userInput);
            int           result            = testScrabbleScore.ScrabbleScoreGenerator();
            int           expectedResult    = 10;

            Assert.Equal(expectedResult, result);
        }