Exemplo n.º 1
0
        public void HttpStatusCodeIsPopulated()
        {
            var ex = new StoreProcedureNotFoundException("sch", "sp");

            Assert.AreEqual(HttpStatusCode.InternalServerError, ex.ResponseCode);
        }
Exemplo n.º 2
0
        public void ErrorMessageIsPopulated()
        {
            var ex = new StoreProcedureNotFoundException("sch", "sp");

            Assert.AreEqual("Stored Procedure 'sch.sp' not found.", ex.Message);
        }
Exemplo n.º 3
0
        public void HttpErrorMessageIsPopulated()
        {
            var ex = new StoreProcedureNotFoundException("sch", "sp");

            Assert.AreEqual("StoreProcedureNotFound", ex.HttpErrorMessage);
        }
Exemplo n.º 4
0
        public void IsBaseException()
        {
            var ex = new StoreProcedureNotFoundException("a", "b");

            Assert.IsInstanceOfType(ex, typeof(BaseCaughtException));
        }