Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2017-04-19 22:04:47 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2017-04-19 22:08:52 +0300
commitceabda8a54b2580a1cd1feb7d01996c083ac92c3 (patch)
tree5b19488af373eabd61fc61849c1f654197407055 /mcs/class/System.Data
parent4472be61f03b45054289c5a0f2ae77b7b7ed5e6b (diff)
[corlib/System.Data] Test fixes for xammac 4.5 and watchos
The TrimSpecial() method and Windows-specific code was removed from xammac 4.5 so reflection can't find it anymore, handle this case. Also add a workaround for SqlParameterCollectionTest.CopyToTest() which fails on watchos since the SqlCommand would throw a PNSE. It's a workaround because it just makes the test ignored since we don't set the env var that ConnectionManager.Instance.Sql reads in XI tests, but it makes the test consistent with the other tests in the suite. We should fix this properly later on.
Diffstat (limited to 'mcs/class/System.Data')
-rw-r--r--mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlParameterCollectionTest.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlParameterCollectionTest.cs b/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlParameterCollectionTest.cs
index ccb6e197d3c..48181ca6b19 100644
--- a/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlParameterCollectionTest.cs
+++ b/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlParameterCollectionTest.cs
@@ -41,6 +41,14 @@ namespace MonoTests.System.Data.Connected.SqlClient
public class SqlParameterCollectionTest
{
+ EngineConfig engine;
+
+ [SetUp]
+ public void SetUp ()
+ {
+ engine = ConnectionManager.Instance.Sql.EngineConfig;
+ }
+
[Test]
public void CopyToTest ()
{