Tests.ExtentionsTests.nested_exceptions_with_log_inner_allowed C# (CSharp) Method

nested_exceptions_with_log_inner_allowed() private method

private nested_exceptions_with_log_inner_allowed ( ) : void
return void
        public void nested_exceptions_with_log_inner_allowed()
        {
            var client = new FakeAirbrakeClient();
            var exception = new Exception("outer exception",new Exception("inner exception"));

            exception.SendToAirbrake(true, null, client);

            Assert.AreEqual(2, client.SentExceptions.Count);
            Assert.AreEqual(2, client.SentNotices.Count);
            Assert.AreEqual("inner exception", client.SentExceptions[0].Message);
            Assert.AreEqual("outer exception", client.SentExceptions[1].Message);

        }