public void DbUnexpectedValidationException_string_exception_constructor()
        {
            var innerException = new Exception();
            var exception      = new DbUnexpectedValidationException("Exception", innerException);

            Assert.Equal("Exception", exception.Message);
            Assert.Same(innerException, exception.InnerException);
        }
        public void DbUnexpectedValidationException_string_exception_constructor()
        {
            var innerException = new Exception();
            var exception = new DbUnexpectedValidationException("Exception", innerException);

            Assert.Equal("Exception", exception.Message);
            Assert.Same(innerException, exception.InnerException);
        }
        public void DbUnexpectedValidationException_parameterless_constructor()
        {
            if (LocalizationTestHelpers.IsEnglishLocale())
            {
                var exception = new DbUnexpectedValidationException();

                Assert.Equal("Data Exception.", exception.Message);
            }
        }
        public void DbUnexpectedValidationException_parameterless_constructor()
        {
            if (LocalizationTestHelpers.IsEnglishLocale())
            {
                var exception = new DbUnexpectedValidationException();

                Assert.Equal("Data Exception.", exception.Message);
            }
        }
        public void DbUnexpectedValidationException_parameterless_constructor()
        {
            var exception = new DbUnexpectedValidationException();

            Assert.Equal("Data Exception.", exception.Message);
        }
        public void DbUnexpectedValidationException_string_constructor()
        {
            var exception = new DbUnexpectedValidationException("Exception");

            Assert.Equal("Exception", exception.Message);
        }
Exemple #7
0
 public ModelException(DbUnexpectedValidationException ex)
     : base(ex.Message, ex.InnerException)
 {
 }
        public void DbUnexpectedValidationException_parameterless_constructor()
        {
            var exception = new DbUnexpectedValidationException();

            Assert.Equal("Data Exception.", exception.Message);
        }
        public void DbUnexpectedValidationException_string_constructor()
        {
            var exception = new DbUnexpectedValidationException("Exception");

            Assert.Equal("Exception", exception.Message);
        }