[corlib/System.Data] Test fixes for xammac 4.5 and watchos
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 19 Apr 2017 19:04:47 +0000 (21:04 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 19 Apr 2017 19:08:52 +0000 (21:08 +0200)
commitceabda8a54b2580a1cd1feb7d01996c083ac92c3
tree5b19488af373eabd61fc61849c1f654197407055
parent4472be61f03b45054289c5a0f2ae77b7b7ed5e6b
[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.
mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlParameterCollectionTest.cs
mcs/class/corlib/Test/System/TimeZoneInfoTest.cs