public void GetRequestors_WhenDatabaseThrowsError_ShouldThrowException() { //Arrange mockDataAccess .Setup(x => x.GetDataTable( It.IsAny <string>(), "prc_ISISRequestorsGet", It.IsAny <CommandType>(), It.IsAny <SqlParameter[]>())) .Throws <Exception>(); //Act and Assert Assert.Throws <Exception>(() => programRequest.GetRequestors(1)); mockExceptionHandling.VerifyAll(); }