I have written unit test for following action.
[HttpPost] public ActionResult/*ViewResult*/ Create(MyViewModel vm) { if (ModelState.IsValid) {
Please note that
Assert.IsInstanceOfType(result,typeof(RedirectToRouteResult));
has been deprecated.
The new syntax is
Assert.That(result, Is.InstanceOf());