public void ReturnsFalseWhenNoExceptionMatchesType()
            {
                var target = new HttpRequestException(
                    "An error occurred while sending the request.",
                    new WebException(
                        "Unable to connect to the remote server",
                        new SocketException(10060)));

                Assert.False(target.HasTypeOrInnerType <ApplicationException>());
            }
            public void ReturnsTrueWhenInnerInnerExceptionInheritsType()
            {
                var target = new HttpRequestException(
                    "An error occurred while sending the request.",
                    new WebException(
                        "Unable to connect to the remote server",
                        new SocketException(10060)));

                Assert.True(target.HasTypeOrInnerType <InvalidOperationException>());
            }