public void HttpStatusCodeIsPopulated() { var ex = new StoreProcedureNotFoundException("sch", "sp"); Assert.AreEqual(HttpStatusCode.InternalServerError, ex.ResponseCode); }
public void ErrorMessageIsPopulated() { var ex = new StoreProcedureNotFoundException("sch", "sp"); Assert.AreEqual("Stored Procedure 'sch.sp' not found.", ex.Message); }
public void HttpErrorMessageIsPopulated() { var ex = new StoreProcedureNotFoundException("sch", "sp"); Assert.AreEqual("StoreProcedureNotFound", ex.HttpErrorMessage); }
public void IsBaseException() { var ex = new StoreProcedureNotFoundException("a", "b"); Assert.IsInstanceOfType(ex, typeof(BaseCaughtException)); }