public void HttpStatusCodeIsPopulated() { var ex = new NoPrimaryKeyFoundException("entity"); Assert.AreEqual(HttpStatusCode.InternalServerError, ex.ResponseCode); }
public void ErrorMessageIsPopulated() { var ex = new NoPrimaryKeyFoundException("entity"); Assert.AreEqual("Entity 'entity' does not contain a primary key.", ex.Message); }
public void HttpErrorMessageIsPopulated() { var ex = new NoPrimaryKeyFoundException("entity"); Assert.AreEqual("EntityKeyNotFound", ex.HttpErrorMessage); }
public void IsBaseException() { var ex = new NoPrimaryKeyFoundException("a"); Assert.IsInstanceOfType(ex, typeof(BaseCaughtException)); }