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
@@ -122,6 +122,7 @@ namespace MonoTests.System.Xml
|
||||
|
||||
[Test]
|
||||
[Category ("NotDotNet")] // fails to differentiate document instances
|
||||
[Ignore ("fails to differentiate document instances")]
|
||||
public void MoveToAndIsSamePosition ()
|
||||
{
|
||||
var doc1 = XDocument.Parse ("<foo><bar /></foo>");
|
||||
@@ -580,16 +581,17 @@ namespace MonoTests.System.Xml
|
||||
XPathNavigator nav = doc.CreateNavigator ();
|
||||
XPathNodeIterator iter = nav.Select ("/Abc/Foo");
|
||||
iter.MoveNext ();
|
||||
Assert.AreEqual ("Hello<\r\nInnerXml", iter.Current.InnerXml, "#1");
|
||||
Assert.AreEqual ("<Foo>Hello<\r\nInnerXml</Foo>", iter.Current.OuterXml, "#2");
|
||||
Assert.AreEqual ("Hello<\r\nInnerXml".Replace ("\r\n", Environment.NewLine), iter.Current.InnerXml, "#1");
|
||||
Assert.AreEqual ("<Foo>Hello<\r\nInnerXml</Foo>".Replace ("\r\n", Environment.NewLine), iter.Current.OuterXml, "#2");
|
||||
iter = nav.Select ("/Abc/Foo/text()");
|
||||
iter.MoveNext ();
|
||||
Assert.AreEqual (String.Empty, iter.Current.InnerXml, "#3");
|
||||
Assert.AreEqual ("Hello<\r\nInnerXml", iter.Current.OuterXml, "#4");
|
||||
Assert.AreEqual ("Hello<\r\nInnerXml".Replace ("\r\n", Environment.NewLine), iter.Current.OuterXml, "#4");
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("NotDotNet")] // .NET bug; it should escape value
|
||||
[Ignore ("referencesource System.Xml bug")]
|
||||
public void InnerXmlAttributeEscape ()
|
||||
{
|
||||
StringReader sr = new StringReader ("<Abc><Foo attr='val"1 >'/></Abc>");
|
||||
|
Reference in New Issue
Block a user