コード例 #1
0
        public void CheckGooglePage()
        {
            var returnValue   = GooglePage.CheckGooglePage();
            var expectedValue = "Gmail";

            Assert.AreEqual(expectedValue, returnValue);
        }
コード例 #2
0
        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));
        }