Exemplo n.º 1
0
        public void InnerExceptionShouldBeTheSameAsPassedToConstructor()
        {
            var ex = new AdAccountInvalidException("Test", new StackOverflowException());

            ex.InnerException.Should().BeEquivalentTo(new StackOverflowException());
        }
Exemplo n.º 2
0
        public void ShouldHaveCorrectMessageByDefault()
        {
            var ex = new AdAccountInvalidException("Test", new Exception());

            ex.Message.Should().Be($"AD Account \"Test\" is invalid.");
        }