diff options
author | Santiago Fernandez Madero <safern@microsoft.com> | 2016-12-20 00:42:40 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-20 00:42:40 +0300 |
commit | a7d6c2c5fbf870092535b6e70e25c97c2187f959 (patch) | |
tree | c4f03a1f73c9d0ef060da61334cbfd2101c89d18 /src/System.Private.Xml/tests/Xslt | |
parent | 76bc9265abed296dc5be72f18a5c02060e0fe1d3 (diff) |
Fixes System.Private.Xml tests from failing (#14599)
* Fix System.Private.Xml tests from failing
Diffstat (limited to 'src/System.Private.Xml/tests/Xslt')
6 files changed, 3 insertions, 24 deletions
diff --git a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs index 870c31a878..f30de2c5d5 100644 --- a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs +++ b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslCompiledTransform.cs @@ -986,9 +986,6 @@ namespace System.Xml.Tests private ITestOutputHelper _output; public CXmlResolverTest(ITestOutputHelper output) : base(output) { - // Make sure that we don't cache the value of the switch to enable testing - AppContext.SetSwitch("TestSwitch.LocalAppContext.DisableCaching", true); - _output = output; } @@ -2960,9 +2957,6 @@ namespace System.Xml.Tests private ITestOutputHelper _output; public CTransformResolverTest(ITestOutputHelper output) : base(output) { - // Make sure that we don't cache the value of the switch to enable testing - AppContext.SetSwitch("TestSwitch.LocalAppContext.DisableCaching", true); - _output = output; } @@ -3491,9 +3485,6 @@ namespace System.Xml.Tests private ITestOutputHelper _output; public CTransformStrStrResolverTest(ITestOutputHelper output) : base(output) { - // Make sure that we don't cache the value of the switch to enable testing - AppContext.SetSwitch("TestSwitch.LocalAppContext.DisableCaching", true); - _output = output; } @@ -3582,9 +3573,6 @@ namespace System.Xml.Tests private ITestOutputHelper _output; public CTransformConstructorWihtFourParametersTest(ITestOutputHelper output) : base(output) { - // Make sure that we don't cache the value of the switch to enable testing - AppContext.SetSwitch("TestSwitch.LocalAppContext.DisableCaching", true); - _output = output; } diff --git a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs index 8f56c6acc5..e67da3a913 100644 --- a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs +++ b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XslTransformMultith.cs @@ -148,9 +148,6 @@ namespace System.Xml.Tests private ITestOutputHelper _output; public SameInstanceXslTransformReader(ITestOutputHelper output) : base(output) { - // Make sure that we don't cache the value of the switch to enable testing - AppContext.SetSwitch("TestSwitch.LocalAppContext.DisableCaching", true); - _output = output; } @@ -447,9 +444,6 @@ namespace System.Xml.Tests private ITestOutputHelper _output; public SameInstanceXslTransformWriter(ITestOutputHelper output) : base(output) { - // Make sure that we don't cache the value of the switch to enable testing - AppContext.SetSwitch("TestSwitch.LocalAppContext.DisableCaching", true); - _output = output; } diff --git a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltApiV2.cs b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltApiV2.cs index e3578b71e5..60d94c69ec 100644 --- a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltApiV2.cs +++ b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltApiV2.cs @@ -112,6 +112,7 @@ namespace System.Xml.Tests private ITestOutputHelper _output; public XsltApiTestCaseBase2(ITestOutputHelper output) { + AppContext.SetSwitch("TestSwitch.LocalAppContext.DisableCaching", true); _output = output; this.Init(null); } diff --git a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs index 1363e108c0..b278705853 100644 --- a/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs +++ b/src/System.Private.Xml/tests/Xslt/XslCompiledTransformApi/XsltSettings.cs @@ -18,9 +18,6 @@ namespace System.Xml.Tests private ITestOutputHelper _output; public CXsltSettings(ITestOutputHelper output) : base(output) { - // Make sure that we don't cache the value of the switch to enable testing - AppContext.SetSwitch("TestSwitch.LocalAppContext.DisableCaching", true); - _output = output; } diff --git a/src/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs b/src/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs index ac673a4ec1..1944a65c65 100644 --- a/src/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs +++ b/src/System.Private.Xml/tests/Xslt/XslTransformApi/CXslTransform.cs @@ -2599,9 +2599,6 @@ namespace System.Xml.Tests private ITestOutputHelper _output; public CTransformStrStrResolverTest(ITestOutputHelper output) : base(output) { - // Make sure that we don't cache the value of the switch to enable testing - AppContext.SetSwitch("TestSwitch.LocalAppContext.DisableCaching", true); - _output = output; } diff --git a/src/System.Private.Xml/tests/Xslt/XslTransformApi/XSLTransform.cs b/src/System.Private.Xml/tests/Xslt/XslTransformApi/XSLTransform.cs index cf0ac100f6..50c31cd05e 100644 --- a/src/System.Private.Xml/tests/Xslt/XslTransformApi/XSLTransform.cs +++ b/src/System.Private.Xml/tests/Xslt/XslTransformApi/XSLTransform.cs @@ -87,6 +87,8 @@ namespace System.Xml.Tests private ITestOutputHelper _output; public XsltApiTestCaseBase(ITestOutputHelper output) { + // Make sure that we don't cache the value of the switch to enable testing + AppContext.SetSwitch("TestSwitch.LocalAppContext.DisableCaching", true); _output = output; this.Init(null); } |