public void IsScrabble_ScoreOfInvalidLetter_0() { //Arrange string inputTest = "!"; string resultTest = "Please enter a single word with no special characters"; //Act Scrabble testCalc = new Scrabble(inputTest); string result = testCalc.GetScore(); //Assert Assert.Equal(resultTest, result); }
public void IsScrabble_ScoreOfLowerCaseLetter_1() { //Arrange string inputTest = "a"; string resultTest = "1"; //Act Scrabble testCalc = new Scrabble(inputTest); string result = testCalc.GetScore(); //Assert Assert.Equal(resultTest, result); }
public void ScrabbleTester_ReturnScore_int() { int resultWord = Scrabble.GetScore("Hello"); Assert.AreEqual(8, resultWord); }