diff options
Diffstat (limited to 'mcs/class/System.XML/Test/System.Xml.Serialization/XmlSerializationWriterTests.cs')
-rw-r--r-- | mcs/class/System.XML/Test/System.Xml.Serialization/XmlSerializationWriterTests.cs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSerializationWriterTests.cs b/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSerializationWriterTests.cs index 4be97a8140d..c83ef788f46 100644 --- a/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSerializationWriterTests.cs +++ b/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSerializationWriterTests.cs @@ -130,11 +130,7 @@ namespace MonoTests.System.XmlSerialization public void TestFromDateTime() { DateTime d = new DateTime(); -#if NET_2_0 Assert.AreEqual ("0001-01-01T00:00:00", FromDateTime (d)); -#else - Assert.AreEqual ("0001-01-01T00:00:00.0000000", FromDateTime (d).Substring (0, 27)); -#endif } [Test] // bug #77500 @@ -202,7 +198,6 @@ namespace MonoTests.System.XmlSerialization long[] ids = {1, 2, 3, 4}; string[] values = {"one", "two", "three", "four"}; -#if NET_2_0 try { FromEnum (8, values, ids); Assert.Fail ("#A1"); @@ -212,11 +207,7 @@ namespace MonoTests.System.XmlSerialization Assert.IsTrue (ex.Message.IndexOf ("'8'") != -1, "#A4"); Assert.IsNull (ex.InnerException, "#A5"); } -#else - Assert.AreEqual ("8", FromEnum (8, values, ids), "#A6"); -#endif -#if NET_2_0 try { FromEnum (8, values, ids, "Some.Type.Name"); Assert.Fail ("#B1"); @@ -227,7 +218,6 @@ namespace MonoTests.System.XmlSerialization Assert.IsTrue (ex.Message.IndexOf ("Some.Type.Name") != -1, "#B5"); Assert.IsNull (ex.InnerException, "#B6"); } -#endif } [Test] @@ -776,15 +766,9 @@ namespace MonoTests.System.XmlSerialization xsw.ExecuteWriteTypedPrimitive ("x", ANamespace, dateTime, false); // FIXME: This is a bad test case. The following switch // should be applied to the entire test. -#if NET_2_0 Assert.AreEqual (string.Format (CultureInfo.InvariantCulture, "<x xmlns='{0}'>1973-08-13T00:00:00</x>", ANamespace), xsw.Content, "#1"); -#else - Assert.AreEqual (string.Format (CultureInfo.InvariantCulture, - "<x xmlns='{0}'>{1}</x>", ANamespace, FromDateTime (dateTime)), - xsw.Content, "#1"); -#endif xsw.Reset (); xsw.ExecuteWriteTypedPrimitive ("x", string.Empty, dateTime, false); |