Example #1
0
 public HomeModule()
 {
     Get["/"]        = _ => View["index.cshtml"];
     Post["/result"] = _ => {
         string   input       = Request.Form["user-input"];
         Scrabble newScrabble = new Scrabble();
         int      score       = newScrabble.CountDict(input);
         return(View["result.cshtml", score]);
     };
 }
        public void ScrabbleDict_InputDG_2()
        {
            //Arrange
            Scrabble obj = new Scrabble();


            //Act
            int output = obj.CountDict("qUIZ%!");

            //Assert
            Assert.Equal(22, output);
        }
        public void ScrabbleDict_InputAEIOULNRST_1()

        {
            //Arrange
            Scrabble obj = new Scrabble();


            //Act
            int output = obj.CountDict("T");

            //Assert
            Assert.Equal(1, output);
        }