public void TestScrabbleFunction() { string userInput = "Scrabble"; int testScore = 14; Assert.AreEqual(testScore, Scrabble.ScrabbleCalc(userInput)); }
public void TestCalc_Pass() { Scrabble testPass = new Scrabble(); int testCounter = 14; Assert.AreEqual(testCounter, testPass.ScrabbleCalc("Python")); }
public void TestCalc_Fail() { Scrabble testFail = new Scrabble(); int testCounter = 9; Assert.AreEqual(testCounter, testFail.ScrabbleCalc("Ruby")); }
public ActionResult Display() { Scrabble.DeleteAll(); Scrabble newScrabble = new Scrabble(); string userInput = (Request.Form["scrabbleInput"]); Scrabble.SetUserWord(userInput); string userWord = Scrabble.GetUserWord(); int result = Scrabble.ScrabbleCalc(userInput); return(View("Index", newScrabble)); }