public void GetDetailsNegativeCase() { HomeController ObjHomeCntrl = new HomeController(); Task <JsonResult> result = ObjHomeCntrl.GetDtails() as Task <JsonResult>; IDictionary <string, object> data = (IDictionary <string, object>) new RouteValueDictionary(result); Assert.AreNotEqual(false, data["status"]); }