public void ScrabbleScore_ReturnsFiveForWordQuiz_True() { string input = "quiz"; Scrabble testScrabble = new Scrabble(input); int result = testScrabble.ScoreChecker(); Assert.Equal(22, result); }
public HomeModule() { Get["/"] = _ => { return(View["index.cshtml"]); }; Post["/score"] = _ => { string input = Request.Form["user-input"]; Scrabble newScrabble = new Scrabble(input); int score = newScrabble.ScoreChecker(); return(View["score.cshtml", score]); }; }
public void ScrabbleScore_ForLetterC_ReturnScoreOf3(string value) { Scrabble newScrabble = new Scrabble(value); Assert.True(newScrabble.ScoreChecker() == 3); }