You've already forked linux-packaging-mono
Imported Upstream version 4.2.0.179
Former-commit-id: 0a113cb3a6feb7873f632839b1307cc6033cd595
This commit is contained in:
committed by
Jo Shields
parent
183bba2c9a
commit
6992685b86
@@ -163,7 +163,8 @@ namespace MonoTests.System.XmlSerialization
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("NotDotNet")]
|
||||
[Category ("MobileNotWorking")]
|
||||
[ExpectedException (typeof (InvalidOperationException))]
|
||||
public void DeserializeArrayReferences ()
|
||||
{
|
||||
string s = "<Sample xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">";
|
||||
@@ -248,7 +249,6 @@ namespace MonoTests.System.XmlSerialization
|
||||
ListDefaults d2 = (ListDefaults) Deserialize (typeof (ListDefaults), "<root/>");
|
||||
|
||||
Assert.IsNotNull (d2.list2, "#A1");
|
||||
Assert.IsNull (d2.list3, "#A2");
|
||||
Assert.IsNull (d2.list4, "#A3");
|
||||
Assert.IsNotNull (d2.list5, "#A4");
|
||||
Assert.IsNotNull (d2.ed, "#A5");
|
||||
@@ -257,7 +257,6 @@ namespace MonoTests.System.XmlSerialization
|
||||
d2 = (ListDefaults) Deserialize (typeof (ListDefaults), "<root></root>");
|
||||
|
||||
Assert.IsNotNull (d2.list2, "#B1");
|
||||
Assert.IsNull (d2.list3, "#B2");
|
||||
Assert.IsNull (d2.list4, "#B3");
|
||||
Assert.IsNotNull (d2.list5, "#B4");
|
||||
Assert.IsNotNull (d2.ed, "#B5");
|
||||
@@ -819,7 +818,7 @@ namespace MonoTests.System.XmlSerialization
|
||||
}
|
||||
|
||||
[Test]
|
||||
[ExpectedException (typeof (InvalidOperationException))]
|
||||
[Category ("MobileNotWorking")]
|
||||
public void TestDeserializeObjectWithReadonlyNulCollection ()
|
||||
{
|
||||
string s3 = "";
|
||||
@@ -830,7 +829,8 @@ namespace MonoTests.System.XmlSerialization
|
||||
s3 += " </Collection1>";
|
||||
s3 += "</Container>";
|
||||
|
||||
Deserialize (typeof (ObjectWithReadonlyNulCollection), s3);
|
||||
var obj = (ObjectWithReadonlyNulCollection) Deserialize (typeof (ObjectWithReadonlyNulCollection), s3);
|
||||
Assert.IsNull (obj.Collection1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -1060,7 +1060,7 @@ namespace MonoTests.System.XmlSerialization
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("NotDotNet")] // MS.NET results in compilation error (probably it generates bogus source.)
|
||||
[Category ("NotWorking")] // MS.NET results in compilation error (probably it generates bogus source.)
|
||||
public void TestDeserialize_Field_Encoded ()
|
||||
{
|
||||
Field_Encoded f = null;
|
||||
@@ -1547,11 +1547,12 @@ namespace MonoTests.System.XmlSerialization
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("MobileNotWorking")]
|
||||
public void NotExactDateParse ()
|
||||
{
|
||||
XmlSerializer xs = new XmlSerializer (typeof (NotExactDateParseClass));
|
||||
NotExactDateParseClass o = (NotExactDateParseClass) xs.Deserialize (new StringReader ("<NotExactDateParseClass xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><SomeDate xsi:type=\"xsd:date\">2012-02-05-09:00</SomeDate></NotExactDateParseClass>"));
|
||||
Assert.AreEqual (new DateTime (2012,2,5), o.SomeDate);
|
||||
Assert.AreEqual (new DateTime (2012,2,5,9,0,0,DateTimeKind.Utc), o.SomeDate.ToUniversalTime ());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user