public void InnerExceptionShouldBeTheSameAsPassedToConstructor() { var ex = new AdAccountInvalidException("Test", new StackOverflowException()); ex.InnerException.Should().BeEquivalentTo(new StackOverflowException()); }
public void ShouldHaveCorrectMessageByDefault() { var ex = new AdAccountInvalidException("Test", new Exception()); ex.Message.Should().Be($"AD Account \"Test\" is invalid."); }