public ActionResult Index(SrmQuizViewModel quiz) { var comparer = new SrmComparer(Srm.GetMasterSrms()); comparer.QuizSrms = quiz.UserSrms; quiz.Message = comparer.IsCorrect() ? "Correct" : "Incorrect"; return View(quiz); }
public ActionResult Index(SrmQuizViewModel quiz) { var comparer = new SrmComparer(Srm.GetMasterSrms()); comparer.QuizSrms = quiz.UserSrms; quiz.Message = comparer.IsCorrect() ? "Correct" : "Incorrect"; return(View(quiz)); }
public void srmComparer_whenIncorrectOrder_returnsFalse() { comparer.QuizSrms = GetUnorderedListofSrm(); Assert.AreEqual(false, comparer.IsCorrect()); }