Beispiel #1
0
        public void ScoreWord_TestCaps_Void()
        {
            //arrange
            int       controlScore = 8;
            WordScore newWordScore = new WordScore("BAnAna");

            //act
            newWordScore.ScoreWord();

            //assert
            Assert.AreEqual(controlScore, newWordScore.GetScore());
        }
Beispiel #2
0
        public void GetWord_TestInput_String()
        {
            //Arrange
            string    controlWord  = "banana";
            int       controlScore = 8;
            WordScore newWordScore = new WordScore("banana");

            newWordScore.ScoreWord();

            //Act
            string wordResult  = newWordScore.GetWord();
            int    scoreResult = newWordScore.GetScore();


            //Assert
            Assert.AreEqual(wordResult, controlWord);
            Assert.AreEqual(scoreResult, controlScore);
        }