public void List() { //Arrange var controller = new CustomerController(); //Act var result = (ViewResult)controller.List(); //Assert Assert.IsNotNull(result); Assert.AreEqual("", result.ViewName); }