Inheritance: AirbrakeClient
        public void http_exception_404_should_not_send()
        {
            var client = new FakeAirbrakeClient();
            var exception = new HttpException(404, "not found");

            exception.SendToAirbrake(client: client);

            Assert.AreEqual(0, client.SentExceptions.Count);
            Assert.AreEqual(0, client.SentNotices.Count);

        }
        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);

        }
        public void http_unhandled_exception_alone_should_log()
        {
            var client = new FakeAirbrakeClient();
            var exception = new HttpUnhandledException("unhandled");

            exception.SendToAirbrake(client: client);

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

        }