public void AddressOutOfRangeMessage() { var t_Exception = new AddressOutOfRange("Foobar"); t_Exception.Message .Should() .Be("Foobar"); }
public void AddressOutOfRangeMessageInnerException() { var t_Exception = new AddressOutOfRange("Foobar", new Exception("Foobar2")); t_Exception.Message .Should() .Be("Foobar"); t_Exception.InnerException .Should() .NotBeNull(); t_Exception.InnerException.Message .Should() .Be("Foobar2"); }