tests.
* DataColumnTest2.cs: Change culture for culture-sensitive tests.
svn path=/trunk/mcs/; revision=122213
+#if NET_2_0
+
using System;
using System.Data;
+using System.Data.Common;
+using System.Globalization;
+using System.IO;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters;
using System.Runtime.Serialization.Formatters.Binary;
-using System.IO;
-using System.Data.Common;
+using System.Threading;
+
using NUnit.Framework;
[TestFixture]
public class BinarySerializationTest
{
-#if NET_2_0
+ private CultureInfo originalCulture;
+
+ [SetUp]
+ public void SetUp ()
+ {
+ originalCulture = Thread.CurrentThread.CurrentCulture;
+ Thread.CurrentThread.CurrentCulture = new CultureInfo ("en-US");
+ }
+
+ [TearDown]
+ public void TearDown ()
+ {
+ Thread.CurrentThread.CurrentCulture = originalCulture;
+ }
+
[Test]
public void RemotingFormatDataTableTest ()
{
for (int i = 0; i < ds.Relations.Count; i++)
Assert.AreEqual (ds.Relations [i].RelationName, ds.Relations [i].RelationName, "#9 Relation : {0} differs", ds.Relations [i]);
}
-#endif
}
+
+#endif
* DataTableTest.cs: Allow NFIFromBug55978 test to pass when MONO_PATH
is not set.
+ * BinarySerializationTest.cs: Change culture for culture-sensitive
+ tests.
+ * DataColumnTest2.cs: Change culture for culture-sensitive tests.
+
2008-11-18 Raja R Harinath <harinath@hurrynot.org>
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-using NUnit.Framework;
using System;
using System.ComponentModel;
using System.Data;
+using System.Globalization;
+using System.Threading;
+
using MonoTests.System.Data.Utils;
+using NUnit.Framework;
+
namespace MonoTests.System.Data
{
- [TestFixture] public class DataColumnTest2
+ [TestFixture]
+ public class DataColumnTest2
{
+ private CultureInfo originalCulture;
+
+ [SetUp]
+ public void SetUp ()
+ {
+ originalCulture = Thread.CurrentThread.CurrentCulture;
+ Thread.CurrentThread.CurrentCulture = new CultureInfo ("en-US");
+ }
+
+ [TearDown]
+ public void TearDown ()
+ {
+ Thread.CurrentThread.CurrentCulture = originalCulture;
+ }
+
[Test] public void AllowDBNull()
{
DataTable dt = new DataTable();