public void CheckGooglePage() { var returnValue = GooglePage.CheckGooglePage(); var expectedValue = "Gmail"; Assert.AreEqual(expectedValue, returnValue); }
public ActionResult Google() { var returnMessage = GooglePage.CheckGooglePage(); string expectedResult = "Gmail"; string result = ""; if (expectedResult == returnMessage) { result = "success"; } else { result = "fail"; } return(Json(new { data = result }, JsonRequestBehavior.AllowGet)); }