System.Linq.Expressions: Skip tests if DebuggerTypeProxy attribute isn't available...
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Thu, 11 Apr 2019 17:07:13 +0000 (19:07 +0200)
committerStephen Toub <stoub@microsoft.com>
Thu, 11 Apr 2019 17:07:13 +0000 (13:07 -0400)
commit3f3aaae9693427bbcd6417a1bbe8900a72ead81f
treefd24de28844a64b91d0d703c99d0ccfa329e476c
parent4ca92dd041335fa199346df403bd0dcbd53e9238
System.Linq.Expressions: Skip tests if DebuggerTypeProxy attribute isn't available (dotnet/corefx#36785)

* System.Linq.Expressions: Skip tests if DebuggerTypeProxy attribute isn't available

These tests failed on Xamarin.iOS since the linker strips out most Debugger*
attributes in release builds. We can gracefully handle this case and simply
skip the tests instead.

* Use ConditionalFact/Theory

Commit migrated from https://github.com/dotnet/corefx/commit/7b7345665ec28a85084b3ad2932e03f7641d6151
src/libraries/System.Linq.Expressions/tests/DebuggerTypeProxy/ExpressionDebuggerTypeProxyTests.cs
src/libraries/System.Linq.Expressions/tests/Dynamic/BindingRestrictionsProxyTests.cs
src/libraries/System.Linq.Expressions/tests/Dynamic/ExpandoObjectProxyTests.cs