public void DeleteEmployeeIfSuccess() { string empId = "6"; NegotiatedContentResult <string> actionresult = (NegotiatedContentResult <string>)employeeController.DeleteEmployeeById(empId); Assert.AreEqual <HttpStatusCode>(HttpStatusCode.NoContent, actionresult.StatusCode); Assert.AreEqual("", actionresult.Content); }