public void ThanksTest01() { ResultController target = new ResultController(); Type expected = typeof(ViewResult); ActionResult actual; actual = target.Thanks(); Assert.AreEqual(expected.FullName, actual.GetType().FullName); }
public void SorryTest01() { ResultController target = new ResultController(); ControllerContext context = new ControllerContext(new MockHttpContext(), new RouteData(), target); Type expected = typeof(ViewResult); ActionResult actual; actual = target.Sorry(); Assert.AreEqual(expected.FullName, actual.GetType().FullName); }
public void IndexTest01() { ResultController target = new ResultController(); Type expected = typeof(RedirectToRouteResult); ActionResult actual; actual = target.Index(); Assert.AreEqual(expected.FullName, actual.GetType().FullName); Assert.AreNotEqual("ResultController", actual.GetType().Name); }