コード例 #1
0
            public void ReturnsTrueWhenInnerExceptionMatchesType()
            {
                var target = new ApplicationException(
                    "bad!",
                    new InvalidOperationException("something else"));

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