コード例 #1
0
        public void CheckScrabbleScore_CheckLetterA_One()
        {
            //Arrange
            string             userEnteredText = "a";
            int                score           = 1;
            CheckScrabbleScore testObject      = new CheckScrabbleScore();

            //Act
            int result = testObject.CheckScore(userEnteredText);

            //Assert
            Assert.AreEqual(score, result);
        }
コード例 #2
0
        public void CheckScrabbleScore_SplitWord_array()
        {
            //Arrange
            string userEnteredText = "scrabble";

            string[]           splitTest  = { "s", "c", "r", "a", "b", "b", "l", "e" };
            CheckScrabbleScore testObject = new CheckScrabbleScore();

            //Act
            int result = testObject.CheckScore(userEnteredText);

            //Assert
            Assert.AreEqual(splitTest, result);
        }