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

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

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