public void ExceptionWithInnerExceptionExceptionReturnsExpected() { var exception = new SettingsPropertyWrongTypeException("ThisIsATest", new AggregateException("AlsoATest")); Assert.Equal("ThisIsATest", exception.Message); Assert.Equal("AlsoATest", exception.InnerException.Message); Assert.IsType <AggregateException>(exception.InnerException); }
public void ExceptionEmptyConstructorReturnsExpected() { var exception = new SettingsPropertyWrongTypeException(); Assert.IsType <SettingsPropertyWrongTypeException>(exception); }
public void SingleParameterExceptionReturnsExpected() { var exception = new SettingsPropertyWrongTypeException("ThisIsATest"); Assert.Equal("ThisIsATest", exception.Message); }