Tests.ExtentionsTests.http_unhandled_exception_should_unwrap C# (CSharp) Method

http_unhandled_exception_should_unwrap() private method

private http_unhandled_exception_should_unwrap ( ) : void
return void
        public void http_unhandled_exception_should_unwrap()
        {
            var client = new FakeAirbrakeClient();
            var exception = new HttpUnhandledException("unhandled", new ArgumentException("test"));

            exception.SendToAirbrake(client: client);

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

        }