Tests.ExtentionsTests.nested_exceptions_with_log_inner_not_allowed C# (CSharp) Method

nested_exceptions_with_log_inner_not_allowed() private method

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

            exception.SendToAirbrake(false, null, client);

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

        }