public void TestDelete() { InventoriesController obj = new InventoriesController(); var result = obj.Delete(2) as PartialViewResult; Assert.AreEqual("_delete", result.ViewName); }