Imported Upstream version 5.0.0.42

Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-04-10 11:41:01 +00:00
parent 1190d13a04
commit 6bdd276d05
19939 changed files with 3099680 additions and 93811 deletions

View File

@ -46,7 +46,7 @@ namespace MonoTests.System.XmlSerialization
Assert.AreEqual (string.Format(CultureInfo.InvariantCulture,
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Diagnostics.DebuggerStepThroughAttribute()]{0}" +
"[System.ComponentModel.DesignerCategoryAttribute(\"code\")]{0}" +
@ -64,7 +64,7 @@ namespace MonoTests.System.XmlSerialization
" this.namesField = value;{0}" +
" }}{0}" +
" }}{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#2");
"}}{0}", Environment.NewLine), sw.ToString (), "#2");
codeNamespace = ExportCode (typeof (ArrayClass[]));
@ -76,7 +76,7 @@ namespace MonoTests.System.XmlSerialization
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Diagnostics.DebuggerStepThroughAttribute()]{0}" +
"[System.ComponentModel.DesignerCategoryAttribute(\"code\")]{0}" +
@ -93,7 +93,7 @@ namespace MonoTests.System.XmlSerialization
" this.namesField = value;{0}" +
" }}{0}" +
" }}{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#4");
"}}{0}", Environment.NewLine), sw.ToString (), "#4");
}
[Test]
@ -110,7 +110,7 @@ namespace MonoTests.System.XmlSerialization
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Diagnostics.DebuggerStepThroughAttribute()]{0}" +
"[System.ComponentModel.DesignerCategoryAttribute(\"code\")]{0}" +
@ -128,7 +128,7 @@ namespace MonoTests.System.XmlSerialization
" this.itemsField = value;{0}" +
" }}{0}" +
" }}{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#2");
"}}{0}", Environment.NewLine), sw.ToString (), "#2");
}
[Test]
@ -145,7 +145,7 @@ namespace MonoTests.System.XmlSerialization
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Diagnostics.DebuggerStepThroughAttribute()]{0}" +
"[System.ComponentModel.DesignerCategoryAttribute(\"code\")]{0}" +
@ -163,7 +163,7 @@ namespace MonoTests.System.XmlSerialization
" this.cdataField = value;{0}" +
" }}{0}" +
" }}{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#2");
"}}{0}", Environment.NewLine), sw.ToString (), "#2");
}
[Test]
@ -182,7 +182,7 @@ namespace MonoTests.System.XmlSerialization
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Diagnostics.DebuggerStepThroughAttribute()]{0}" +
"[System.ComponentModel.DesignerCategoryAttribute(\"code\")]{0}" +
@ -204,7 +204,7 @@ namespace MonoTests.System.XmlSerialization
" this.myChoiceField = value;{0}" +
" }}{0}" +
" }}{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#2");
"}}{0}", Environment.NewLine), sw.ToString (), "#2");
}
[Test]
@ -222,7 +222,7 @@ namespace MonoTests.System.XmlSerialization
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Diagnostics.DebuggerStepThroughAttribute()]{0}" +
"[System.ComponentModel.DesignerCategoryAttribute(\"code\")]{0}" +
@ -403,7 +403,7 @@ namespace MonoTests.System.XmlSerialization
"{0}" +
"/// <remarks/>{0}" +
"[System.FlagsAttribute()]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"public enum MapModifiers {{{0}" +
" {0}" +
@ -414,7 +414,7 @@ namespace MonoTests.System.XmlSerialization
" /// <remarks/>{0}" +
" [System.Xml.Serialization.XmlEnumAttribute(\"protected\")]{0}" +
" Protected = 2,{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#2");
"}}{0}", Environment.NewLine), sw.ToString (), "#2");
}
[Test]
@ -431,7 +431,7 @@ namespace MonoTests.System.XmlSerialization
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Xml.Serialization.XmlTypeAttribute(IncludeInSchema=false)]{0}" +
"[System.Xml.Serialization.XmlRootAttribute(Namespace=\"\", IsNullable=false)]{0}" +
@ -446,7 +446,7 @@ namespace MonoTests.System.XmlSerialization
" {0}" +
" /// <remarks/>{0}" +
" ChoiceTwo,{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#2");
"}}{0}", Environment.NewLine), sw.ToString (), "#2");
codeNamespace = ExportCode (typeof (ItemChoiceType[]));
Assert.IsNotNull (codeNamespace, "#3");
@ -457,7 +457,7 @@ namespace MonoTests.System.XmlSerialization
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Xml.Serialization.XmlTypeAttribute(IncludeInSchema=false)]{0}" +
"public enum ItemChoiceType {{{0}" +
@ -471,7 +471,7 @@ namespace MonoTests.System.XmlSerialization
" {0}" +
" /// <remarks/>{0}" +
" ChoiceTwo,{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#4");
"}}{0}", Environment.NewLine), sw.ToString (), "#4");
}
[Test]
@ -488,7 +488,7 @@ namespace MonoTests.System.XmlSerialization
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Diagnostics.DebuggerStepThroughAttribute()]{0}" +
"[System.ComponentModel.DesignerCategoryAttribute(\"code\")]{0}" +
@ -509,7 +509,7 @@ namespace MonoTests.System.XmlSerialization
"}}{0}" +
"{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Diagnostics.DebuggerStepThroughAttribute()]{0}" +
"[System.ComponentModel.DesignerCategoryAttribute(\"code\")]{0}" +
@ -526,7 +526,7 @@ namespace MonoTests.System.XmlSerialization
" this.somethingField = value;{0}" +
" }}{0}" +
" }}{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#2");
"}}{0}", Environment.NewLine), sw.ToString (), "#2");
}
[Test]
@ -544,7 +544,7 @@ namespace MonoTests.System.XmlSerialization
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Diagnostics.DebuggerStepThroughAttribute()]{0}" +
"[System.ComponentModel.DesignerCategoryAttribute(\"code\")]{0}" +
@ -578,7 +578,7 @@ namespace MonoTests.System.XmlSerialization
"}}{0}" +
"{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Diagnostics.DebuggerStepThroughAttribute()]{0}" +
"[System.ComponentModel.DesignerCategoryAttribute(\"code\")]{0}" +
@ -667,7 +667,7 @@ namespace MonoTests.System.XmlSerialization
"{0}" +
"/// <remarks/>{0}" +
"[System.FlagsAttribute()]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Xml.Serialization.XmlTypeAttribute(Namespace=\"some:urn\")]{0}" +
"public enum FlagEnum {{{0}" +
@ -786,7 +786,7 @@ namespace MonoTests.System.XmlSerialization
"{0}" +
"/// <remarks/>{0}" +
"[System.FlagsAttribute()]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Xml.Serialization.XmlTypeAttribute(Namespace=\"urn:myNS\")]{0}" +
"public enum FlagEnum {{{0}" +
@ -806,7 +806,7 @@ namespace MonoTests.System.XmlSerialization
"{0}" +
"/// <remarks/>{0}" +
"[System.FlagsAttribute()]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Xml.Serialization.XmlTypeAttribute(Namespace=\"urn:myNS\")]{0}" +
"public enum FlagEnum_Encoded {{{0}" +
@ -819,7 +819,7 @@ namespace MonoTests.System.XmlSerialization
" {0}" +
" /// <remarks/>{0}" +
" e4 = 4,{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#2");
"}}{0}", Environment.NewLine), sw.ToString (), "#2");
}
[Test]
@ -836,7 +836,7 @@ namespace MonoTests.System.XmlSerialization
Assert.AreEqual (string.Format (CultureInfo.InvariantCulture,
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Diagnostics.DebuggerStepThroughAttribute()]{0}" +
"[System.ComponentModel.DesignerCategoryAttribute(\"code\")]{0}" +
@ -855,7 +855,7 @@ namespace MonoTests.System.XmlSerialization
" this.somethingField = value;{0}" +
" }}{0}" +
" }}{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#2");
"}}{0}", Environment.NewLine), sw.ToString (), "#2");
}
[Test]
@ -909,7 +909,7 @@ namespace MonoTests.System.XmlSerialization
"{0}{0}" +
"/// <remarks/>{0}" +
"[System.FlagsAttribute()]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"System.Xml\", \"{1}\")]{0}" +
"[System.CodeDom.Compiler.GeneratedCodeAttribute(\"nunit-lite-console\", \"0.0.0.0\")]{0}" +
"[System.SerializableAttribute()]{0}" +
"[System.Xml.Serialization.XmlRootAttribute(Namespace=\"\", IsNullable=false)]{0}" +
"public enum ZeroFlagEnum {{{0}" +
@ -925,7 +925,7 @@ namespace MonoTests.System.XmlSerialization
" /// <remarks/>{0}" +
" [System.Xml.Serialization.XmlEnumAttribute(\"tns:t<w>o\")]{0}" +
" e2 = 4,{0}" +
"}}{0}", Environment.NewLine, XmlFileVersion), sw.ToString (), "#2");
"}}{0}", Environment.NewLine), sw.ToString (), "#2");
}
[Test]
@ -1005,15 +1005,6 @@ namespace MonoTests.System.XmlSerialization
return codeNamespace;
}
string XmlFileVersion {
get {
Assembly xmlAsm = typeof (XmlDocument).Assembly;
AssemblyFileVersionAttribute afv = (AssemblyFileVersionAttribute)
Attribute.GetCustomAttribute (xmlAsm, typeof (AssemblyFileVersionAttribute));
return afv.Version;
}
}
[XmlRootAttribute ("root", Namespace="urn:aNS", IsNullable=false)]
public class Root
{

View File

@ -2052,8 +2052,8 @@ namespace MonoTests.System.XmlSerialization
serializer.Serialize (writer, obj);
writer.Close ();
Assert.AreEqual (@"<?xml version=""1.0"" encoding=""utf-16""?>
<Bug594490Class xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xml:lang=""hello world"" />",
Assert.AreEqual (@"<?xml version=""1.0"" encoding=""utf-16""?>" + Environment.NewLine +
@"<Bug594490Class xmlns:xsd=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xml:lang=""hello world"" />",
writer.ToString (),
"Novell bug #594490 (https://bugzilla.novell.com/show_bug.cgi?id=594490) not fixed.");
}

View File

@ -1 +1 @@
bdd08aa7c69f5101ca4b85479f374d3da2f89b16
61835e709a09541daa56c89b501efc256c0ba3c1

View File

@ -446,7 +446,7 @@ namespace MonoTests.System.Xml
string ret = @"<one>
<two>Some data.</two>
</one>";
Assert.AreEqual (ret, nav.OuterXml.Replace ("\r\n", "\n"), "#1");
Assert.AreEqual (ret.Replace ("\r\n", "\n"), nav.OuterXml.Replace ("\r\n", "\n"), "#1");
}
[Test]

View File

@ -685,7 +685,7 @@ namespace MonoTests.System.Xml
</child1>
<child2 />
<child3 />";
Assert.AreEqual (result, n.OuterXml.Replace ("\r\n", "\n"), "#1");
Assert.AreEqual (result.Replace ("\r\n", "\n"), n.OuterXml.Replace ("\r\n", "\n"), "#1");
}
[Test] // bug #376191

View File

@ -106,7 +106,7 @@ namespace MonoTests.System.Xml.Xsl
}
[Test]
[Category ("NotWorking")] // it depends on "mcs" existence
[Category ("MobileNotWorking")]
public void TestCSharp ()
{
string style = xslstring.Replace ("***** rewrite here *****", cs1);
@ -136,8 +136,8 @@ namespace MonoTests.System.Xml.Xsl
}
[Test]
[Ignore ("Actually it should throw compile exception")]
[ExpectedException (typeof (XsltException))]
[Category ("MobileNotWorking")]
public void InvalidScript ()
{
string script = @"<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:user='urn:my-scripts'
@ -162,7 +162,6 @@ namespace MonoTests.System.Xml.Xsl
}
[Test]
[Category ("NotWorking")] // it depends on "mcs" existence
public void CompilerWarningsShouldBeIgnored ()
{
string script = @"<xslt:stylesheet xmlns:xslt='http://www.w3.org/1999/XSL/Transform' version='1.0' xmlns:msxsl='urn:schemas-microsoft-com:xslt'
@ -190,7 +189,6 @@ namespace MonoTests.System.Xml.Xsl
}
[Test]
[Category ("NotWorking")] // it depends on "mcs" existence
public void CompileNoLineInfoSource ()
{
// bug #76116

View File

@ -90,8 +90,8 @@ namespace MonoTests.System.Xml.Xsl
xslt.Load (new XPathDocument (new XmlTextReader (xsl, XmlNodeType.Document, null)));
}
[Test()]
[Category ("NotWorking")] // it depends on "mcs" existence
[Test]
[Category ("MobileNotWorking")]
public void MsxslTest() {
string _styleSheet = @"
<xslt:stylesheet xmlns:xslt=""http://www.w3.org/1999/XSL/Transform"" version=""1.0""
@ -388,7 +388,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
StringWriter sw_raw = new StringWriter ();
t.Transform (d, null, sw_raw);
Assert.AreEqual (ref_out, sw_raw.ToString ().Replace ("\r\n", "\n"));
Assert.AreEqual (ref_out.Replace ("\r\n", "\n"), sw_raw.ToString ().Replace ("\r\n", "\n"));
}
// http://support.microsoft.com/default.aspx?scid=kb;en-us;829014
@ -1053,7 +1053,6 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
}
[Test]
[Category ("NotWorking")] // bug #77081: mono does not output newline and indentation for non-html elements
public void Output_Indent_Html_DocType ()
{
XsltArgumentList xsltArgs = new XsltArgumentList ();
@ -1092,7 +1091,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
" <else>{0}" +
" </else>{0}" +
" </something>{0}" +
"</test>", Environment.NewLine), sw.ToString (), "#1");
"</test>", end_of_line), sw.ToString (), "#1");
// set indent to no
sw.GetStringBuilder ().Length = 0;
@ -1120,7 +1119,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
" <else>{0}" +
" </else>{0}" +
" </something>{0}" +
"</test>", Environment.NewLine), sw.ToString (), "#3");
"</test>", end_of_line), sw.ToString (), "#3");
}
[Test]
@ -1186,7 +1185,6 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
}
[Test]
[Category ("NotWorking")] // bug #77081: mono does not output newline and indentation for non-html elements
public void Output_Indent_Html ()
{
XsltArgumentList xsltArgs = new XsltArgumentList ();
@ -1240,7 +1238,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
" </whatever>{0}" +
" </p>{0}" +
" </body>{0}" +
"</html>", Environment.NewLine), sw.ToString (), "#1");
"</html>", end_of_line), sw.ToString (), "#1");
// set indent to no
sw.GetStringBuilder ().Length = 0;
@ -1276,7 +1274,7 @@ xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl='urn:schemas-micros
" </whatever>{0}" +
" </p>{0}" +
" </body>{0}" +
"</html>", Environment.NewLine), sw.ToString (), "#3");
"</html>", end_of_line), sw.ToString (), "#3");
}
[Test]
@ -2303,8 +2301,7 @@ NO
}
[Test] // reverse case of #349375
[Category ("NotWorking")]
// [Category ("NotDotNet")]
[Category ("MobileNotWorking")]
public void PreserveWhitespace2 ()
{
XslCompiledTransform xslt = new XslCompiledTransform ();
@ -2388,7 +2385,7 @@ NO
}
[Test]
[Category ("NotWorking")] // FIXME: SRE related regression
[Category ("MobileNotWorking")]
public void Bug487065 ()
{
using (XmlReader input = GetInput ()) {

View File

@ -51,14 +51,14 @@ namespace MonoTests.System.Xml
public void CreateEvidenceForUrl_Basic ()
{
Evidence e = XmlSecureResolver.CreateEvidenceForUrl (null);
#if FEATURE_MONO_CAS
#if MONO_FEATURE_CAS
Assert.AreEqual (0, e.Count, "null");
#else
Assert.IsNull (e);
#endif
e = XmlSecureResolver.CreateEvidenceForUrl (String.Empty);
#if FEATURE_MONO_CAS
#if MONO_FEATURE_CAS
Assert.AreEqual (0, e.Count, "String.Empty");
#else
Assert.IsNull (e);
@ -136,7 +136,7 @@ namespace MonoTests.System.Xml
Assert.AreEqual ("file", resolved.Scheme);
var task = sr.GetEntityAsync (resolved, null, typeof (Stream));
Assert.That (task.Wait (3000));
Assert.IsTrue (task.Result is Stream, "Unexpected type: " + task.Result.GetType());
Assert.IsTrue (task.Result is FileStream, "Unexpected type: " + task.Result.GetType());
}
}

View File

@ -303,7 +303,7 @@ namespace MonoTests.System.Xml
<!--AAA-->
<root />";
Assert.AreEqual (xml, sw.ToString ().Replace ("\r\n", "\n"), "#1");
Assert.AreEqual (xml.Replace ("\r\n", "\n"), sw.ToString ().Replace ("\r\n", "\n"), "#1");
}
[Test]

View File

@ -0,0 +1 @@
#include mobile_System.Xml.dll.sources

View File

@ -0,0 +1 @@
#include mobile_System.Xml.dll.sources

View File

@ -0,0 +1 @@
#include mobile_System.Xml.dll.sources