public void GetPetDetails() { //Pets id cannot be null, if this test fails, //it means that that the method Details() doesn't work or the pets table is empty (or no connection to db to database) PetsController pets = new PetsController(); ActionResult result = pets.Details(3); Assert.IsInstanceOfType(result, typeof(ViewResult)); }