public void ExceptionWithInnerExceptionExceptionReturnsExpected() { var exception = new SettingsPropertyIsReadOnlyException("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 SettingsPropertyIsReadOnlyException(); Assert.IsType <SettingsPropertyIsReadOnlyException>(exception); }
public void SingleParameterExceptionReturnsExpected() { var exception = new SettingsPropertyIsReadOnlyException("ThisIsATest"); Assert.Equal("ThisIsATest", exception.Message); }