public void ReturnsTrueWhenExceptionItselfMatchesType() { var target = new InvalidOperationException( "bad!", new ApplicationException("something else")); Assert.True(target.HasTypeOrInnerType <InvalidOperationException>()); }