diff --git a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/Errata4.cs b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/Errata4.cs
index 6846c462c17c6ac1176eae9db3ea9de37316d815..68e0964199f160265aff2de69077f44c746261b9 100644
--- a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/Errata4.cs
+++ b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/Errata4.cs
@@ -13,6 +13,7 @@
namespace System.Xml.XslCompiledTransformApiTests
{
//[TestCase(Name = "Xml 4th Errata tests for XslCompiledTransform", Params = new object[] { 300 })]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class Errata4 : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
diff --git a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/OutputSettings.cs b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/OutputSettings.cs
index 4c0b3500f463cb0569b23c3e32be42774dead119..5bf09df20ede9caca9c3436a35bde329b111c9fa 100644
--- a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/OutputSettings.cs
+++ b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/OutputSettings.cs
@@ -10,6 +10,7 @@
namespace System.Xml.XslCompiledTransformApiTests
{
//[TestCase(Name = "OutputSettings", Desc = "This testcase tests the OutputSettings on XslCompiledTransform", Param = "Debug")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class COutputSettings : XsltApiTestCaseBase2
{
private XslCompiledTransform _xsl = null;
diff --git a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/TempFiles.cs b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/TempFiles.cs
index f9532bb061eeaef04303f03e3107e5b3ea556cbf..373314df7bbe75be3dce16d984057d107de9bded 100644
--- a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/TempFiles.cs
+++ b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/TempFiles.cs
@@ -9,6 +9,7 @@
namespace System.Xml.XslCompiledTransformApiTests
{
//[TestCase(Name = "TemporaryFiles", Desc = "This testcase tests the Temporary Files property on XslCompiledTransform")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class TempFiles : XsltApiTestCaseBase2
{
private XslCompiledTransform _xsl = null;
diff --git a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs
index 20bdea92a9131bd17948c6026db4b9bbe364ba5c..3739812954e0c252528f9cd3eb97c821eca92919 100644
--- a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs
+++ b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs
@@ -81,6 +81,7 @@ protected void WLoad(XslCompiledTransform instance, MethodInfo meth, byte[] byte
}
//[TestCase(Name = "Load(MethodInfo, ByteArray, TypeArray) tests", Desc = "This testcase tests private Load method via Reflection. This method is used by sharepoint")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CLoadMethInfoTest : ReflectionTestCaseBase
{
private ITestOutputHelper _output;
@@ -476,6 +477,7 @@ public void Var14()
//[TestCase(Name = "XslCompiledTransform.XmlResolver : Navigator, Stream", Desc = "NAVIGATOR,STREAM")]
//[TestCase(Name = "XslCompiledTransform.XmlResolver : Navigator, Writer", Desc = "NAVIGATOR,WRITER")]
//[TestCase(Name = "XslCompiledTransform.XmlResolver : Navigator, TextWriter", Desc = "NAVIGATOR,TEXTWRITER")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CXmlResolverTest : XsltApiTestCaseBase2, IDisposable
{
private ITestOutputHelper _output;
@@ -666,6 +668,7 @@ public void XmlResolver7(XslInputType xslInputType, ReaderType readerType, Outpu
//[TestCase(Name = "XslCompiledTransform.Load() - Integrity : Navigator, Stream", Desc = "NAVIGATOR,STREAM")]
//[TestCase(Name = "XslCompiledTransform.Load() - Integrity : Navigator, Writer", Desc = "NAVIGATOR,WRITER")]
//[TestCase(Name = "XslCompiledTransform.Load() - Integrity : Navigator, TextWriter", Desc = "NAVIGATOR,TEXTWRITER")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CLoadTest : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
@@ -1004,6 +1007,7 @@ public void LoadGeneric12(XslInputType xslInputType, ReaderType readerType)
//[TestCase(Name = "XslCompiledTransform.Load(XmlResolver) - Integrity : URI, Stream", Desc = "URI,STREAM")]
//[TestCase(Name = "XslCompiledTransform.Load(XmlResolver) - Integrity : URI, Writer", Desc = "URI,WRITER")]
//[TestCase(Name = "XslCompiledTransform.Load(XmlResolver) - Integrity : URI, TextWriter", Desc = "URI,TEXTWRITER")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CLoadXmlResolverTest : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
@@ -1435,6 +1439,7 @@ public void LoadGeneric11(XslInputType xslInputType, ReaderType readerType)
//[TestCase(Name = "XslCompiledTransform.Load(Url, Resolver) : URI, Stream", Desc = "URI,STREAM")]
//[TestCase(Name = "XslCompiledTransform.Load(Url, Resolver) : URI, Writer", Desc = "URI,WRITER")]
//[TestCase(Name = "XslCompiledTransform.Load(Url, Resolver) : URI, TextWriter", Desc = "URI,TEXTWRITER")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CLoadUrlResolverTest : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
@@ -1534,6 +1539,7 @@ private sealed class XmlAuditingUrlResolver : XmlUrlResolver
/***********************************************************/
//[TestCase(Name = "XslCompiledTransform.Load(Url) Integrity : URI, Stream", Desc = "URI,STREAM")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CLoadStringTest : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
@@ -1652,6 +1658,7 @@ public void LoadUrl5(ReaderType readerType)
/***********************************************************/
//[TestCase(Name = "XslCompiledTransform .Load(IXPathNavigable) : Navigator, TextWriter", Desc = "NAVIGATOR,TEXTWRITER")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CLoadXPathNavigableTest : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
@@ -1760,6 +1767,7 @@ public void LoadNavigator4()
/***********************************************************/
//[TestCase(Name = "XslCompiledTransform.Load(Reader) : Reader, Stream", Desc = "READER,STREAM")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CLoadReaderTest : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
@@ -2149,6 +2157,7 @@ public override string Value
//[TestCase(Name = "XslCompiledTransform.Transform() Integrity : Navigator, Stream", Desc = "NAVIGATOR,STREAM")]
//[TestCase(Name = "XslCompiledTransform.Transform() Integrity : Navigator, Writer", Desc = "NAVIGATOR,WRITER")]
//[TestCase(Name = "XslCompiledTransform.Transform() Integrity : Navigator, TextWriter", Desc = "NAVIGATOR,TEXTWRITER")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CTransformTestGeneric : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
@@ -2404,6 +2413,7 @@ public void TransformGeneric11(XslInputType xslInputType, ReaderType readerType,
//[TestCase(Name = "XslCompiledTransform.Transform(XmlResolver) : Navigator, Stream", Desc = "NAVIGATOR,STREAM")]
//[TestCase(Name = "XslCompiledTransform.Transform(XmlResolver) : Navigator, Writer", Desc = "NAVIGATOR,WRITER")]
//[TestCase(Name = "XslCompiledTransform.Transform(XmlResolver) : Navigator, TextWriter", Desc = "NAVIGATOR,TEXTWRITER")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CTransformResolverTest : XsltApiTestCaseBase2, IDisposable
{
private ITestOutputHelper _output;
@@ -2615,6 +2625,7 @@ public void XmlResolver7(XslInputType xslInputType, ReaderType readerType, Outpu
//[TestCase(Name = "XslCompiledTransform.Transform(String, String) : Reader , String", Desc = "READER,STREAM")]
//[TestCase(Name = "XslCompiledTransform.Transform(String, String) : URI, String", Desc = "URI,STREAM")]
//[TestCase(Name = "XslCompiledTransform.Transform(String, String) : Navigator, String", Desc = "NAVIGATOR,STREAM")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CTransformStrStrTest : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
@@ -2987,6 +2998,7 @@ public void TransformStrStr13(XslInputType xslInputType, ReaderType readerType)
//[TestCase(Name = "XslCompiledTransform.Transform(String, String, Resolver) : Reader , String", Desc = "READER,STREAM")]
//[TestCase(Name = "XslCompiledTransform.Transform(String, String, Resolver) : URI, String", Desc = "URI,STREAM")]
//[TestCase(Name = "XslCompiledTransform.Transform(String, String, Resolver) : Navigator, String", Desc = "NAVIGATOR,STREAM")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CTransformStrStrResolverTest : XsltApiTestCaseBase2, IDisposable
{
private ITestOutputHelper _output;
@@ -3091,6 +3103,7 @@ public void TransformStrStrResolver3(object param, XslInputType xslInputType, Re
//[TestCase(Name = "XslCompiledTransform.Transform(IXPathNavigable, XsltArgumentList, XmlWriter, XmlResolver)", Desc = "Constructor Tests", Param = "IXPathNavigable")]
//[TestCase(Name = "XslCompiledTransform.Transform(XmlReader, XsltArgumentList, XmlWriter, XmlResolver)", Desc = "Constructor Tests", Param = "XmlReader")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CTransformConstructorWithFourParametersTest : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
@@ -3295,6 +3308,7 @@ public void InValidCases(object param0, object param1, object param2)
// This testcase is for bugs 109429, 111075 and 109644 fixed in Everett SP1
//[TestCase(Name = "NDP1_1SP1 Bugs (URI,STREAM)", Desc = "URI,STREAM")]
//[TestCase(Name = "NDP1_1SP1 Bugs (NAVIGATOR,TEXTWRITER)", Desc = "NAVIGATOR,TEXTWRITER")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CNDP1_1SP1Test : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
@@ -3386,6 +3400,7 @@ public void var4(XslInputType xslInputType, ReaderType readerType, OutputType ou
}
//[TestCase(Name = "XslCompiledTransform Regression Tests for API", Desc = "XslCompiledTransform Regression Tests")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CTransformRegressionTest : XsltApiTestCaseBase2, IDisposable
{
private ITestOutputHelper _output;
diff --git a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompilerTests.cs b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompilerTests.cs
index b788db89bfd7b7f55951e3b194b525636da8d45f..77230c4d625b1c3a32c8bcc149b9d48166692d86 100644
--- a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompilerTests.cs
+++ b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompilerTests.cs
@@ -7,6 +7,7 @@
namespace System.Xml.XslCompiledTransformApiTests
{
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class XslCompilerTests
{
[Fact]
diff --git a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs
index 0532519a87ea70d7620b9529f9d412d9746a96e0..5699868c280638235d2e80f12aa6ff03446acb7a 100644
--- a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs
+++ b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs
@@ -35,6 +35,7 @@ public new void Init(object objParam)
}
//[TestCase(Name = "Same instance testing: Transform() - READER")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class SameInstanceXslTransformReader : SameInstanceXslTransformTestCase
{
private XPathDocument _xd; // Loads XML file
@@ -318,6 +319,7 @@ public void proc12()
}
//[TestCase(Name = "Same instance testing: Transform() - TEXTWRITER")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class SameInstanceXslTransformWriter : SameInstanceXslTransformTestCase
{
private XPathDocument _xd; // Loads XML file
diff --git a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltApiV2.cs b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltApiV2.cs
index 6184bfc0e31908581140daf7da6521446d2689f9..0e7dd962fce0be312dd40af59a079aa3d6ea20b8 100644
--- a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltApiV2.cs
+++ b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltApiV2.cs
@@ -37,6 +37,7 @@ public enum NavType
// Base class for test cases
//
////////////////////////////////////////////////////////////////
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class XsltApiTestCaseBase2
{
// Generic data for all derived test cases
diff --git a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltArgumentList.cs b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltArgumentList.cs
index 5e9d7a877cc66eae0b00b9520f27002051b9d488..6bf0e435b2e60d482d7076cf45a2335cc14b9f32 100644
--- a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltArgumentList.cs
+++ b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltArgumentList.cs
@@ -17,6 +17,7 @@ namespace System.Xml.XslCompiledTransformApiTests
/***********************************************************/
//[TestCase(Name = "XsltArgumentList - GetParam", Desc = "Get Param Test Cases")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CArgIntegrity : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
diff --git a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltArgumentListMultith.cs b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltArgumentListMultith.cs
index 39a6646ecafc67b960fc739a1c3528c157697969..bfa3788d0c9072b641b493d23750b66a5fb8c409 100644
--- a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltArgumentListMultith.cs
+++ b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltArgumentListMultith.cs
@@ -55,6 +55,7 @@ public new void Init(object objParam)
}
//[TestCase(Name = "Same instance testing: XsltArgList - GetParam", Desc = "GetParam test cases")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CSameInstanceXsltArgumentListGetParam : CSameInstanceXsltArgTestCase2
{
private ITestOutputHelper _output;
@@ -140,6 +141,7 @@ public void proc2()
}
//[TestCase(Name = "Same instance testing: XsltArgList - GetExtensionObject", Desc = "GetExtensionObject test cases")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CSameInstanceXsltArgumentListGetExtnObject : CSameInstanceXsltArgTestCase2
{
private ITestOutputHelper _output;
@@ -224,6 +226,7 @@ public void proc2()
}
//[TestCase(Name = "Same instance testing: XsltArgList - Transform", Desc = "Multiple transforms")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CSameInstanceXsltArgumentListTransform : CSameInstanceXsltArgTestCase2
{
private ITestOutputHelper _output;
diff --git a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs
index 0ef104833f8cd35a005b18ea1e7dde1d783c0d87..e780f556cfd410721beaaa3e472d47d17596b2fe 100644
--- a/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs
+++ b/src/libraries/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs
@@ -13,6 +13,7 @@ namespace System.Xml.XslCompiledTransformApiTests
{
//[TestCase(Name = "XsltSettings-Retail", Desc = "This testcase tests the different settings on XsltSettings and the corresponding behavior in retail mode", Param = "Retail")]
//[TestCase(Name = "XsltSettings-Debug", Desc = "This testcase tests the different settings on XsltSettings and the corresponding behavior in debug mode", Param = "Debug")]
+ [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]
public class CXsltSettings : XsltApiTestCaseBase2
{
private ITestOutputHelper _output;
diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj
index 6ea3f13a2200b76c3021bddba534fcaaef304529..8ab2c67c430eaaf03d8cdf88f545ce9e94832e4f 100644
--- a/src/libraries/tests.proj
+++ b/src/libraries/tests.proj
@@ -245,9 +245,6 @@
-
-
-
@@ -258,8 +255,6 @@
-
-
@@ -494,9 +489,6 @@
-
-
-