You've already forked linux-packaging-mono
Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
This commit is contained in:
parent
e9207cf623
commit
ef583813eb
@@ -31,7 +31,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
[Test]
|
||||
public void TestNewKeyNode ()
|
||||
{
|
||||
string uri = "http://www.go-mono.com/";
|
||||
string uri = "http://www.example.com/";
|
||||
KeyInfoRetrievalMethod uri1 = new KeyInfoRetrievalMethod ();
|
||||
uri1.Uri = uri;
|
||||
XmlElement xel = uri1.GetXml ();
|
||||
@@ -46,7 +46,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
[Test]
|
||||
public void TestImportKeyNode ()
|
||||
{
|
||||
string value = "<RetrievalMethod URI=\"http://www.go-mono.com/\" xmlns=\"http://www.w3.org/2000/09/xmldsig#\" />";
|
||||
string value = "<RetrievalMethod URI=\"http://www.example.com/\" xmlns=\"http://www.w3.org/2000/09/xmldsig#\" />";
|
||||
XmlDocument doc = new XmlDocument ();
|
||||
doc.LoadXml (value);
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
Assert.AreEqual (value, s, "Xml");
|
||||
|
||||
// verify that property is parsed correctly
|
||||
Assert.AreEqual ("http://www.go-mono.com/", uri1.Uri, "Uri");
|
||||
Assert.AreEqual ("http://www.example.com/", uri1.Uri, "Uri");
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
@@ -51,8 +51,8 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
[Test]
|
||||
public void Properties ()
|
||||
{
|
||||
info.CanonicalizationMethod = "http://www.go-mono.com/";
|
||||
Assert.AreEqual ("http://www.go-mono.com/", info.CanonicalizationMethod, "CanonicalizationMethod");
|
||||
info.CanonicalizationMethod = "http://www.example.com/";
|
||||
Assert.AreEqual ("http://www.example.com/", info.CanonicalizationMethod, "CanonicalizationMethod");
|
||||
info.Id = "Mono::";
|
||||
Assert.AreEqual ("Mono::", info.Id, "Id");
|
||||
}
|
||||
@@ -61,7 +61,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
public void References ()
|
||||
{
|
||||
Reference r1 = new Reference ();
|
||||
r1.Uri = "http://www.go-mono.com/";
|
||||
r1.Uri = "http://www.example.com/";
|
||||
r1.AddTransform (new XmlDsigBase64Transform ());
|
||||
info.AddReference (r1);
|
||||
Assert.AreEqual (1, info.References.Count, "References.Count 1");
|
||||
|
@@ -129,15 +129,15 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
return sb.ToString ();
|
||||
}
|
||||
|
||||
static string xml = "<Test attrib='at ' xmlns=\"http://www.go-mono.com/\" > \r\n 
 <Toto/> text & </Test >";
|
||||
static string xml = "<Test attrib='at ' xmlns=\"http://www.example.com/\" > \r\n 
 <Toto/> text & </Test >";
|
||||
// BAD for XmlDocument input (framework 1.0 result)
|
||||
static string c14xml1 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> \r\n \r <Toto></Toto> text & </Test>";
|
||||
static string c14xml1 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> \r\n \r <Toto></Toto> text & </Test>";
|
||||
// GOOD for Stream input
|
||||
static string c14xml2 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> \n 
 <Toto></Toto> text & </Test>";
|
||||
static string c14xml2 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> \n 
 <Toto></Toto> text & </Test>";
|
||||
// GOOD for XmlDocument input. The difference is because once
|
||||
// xml string is loaded to XmlDocument, there is no difference
|
||||
// between \r and 
, so every \r must be handled as 
.
|
||||
static string c14xml3 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> 
\n 
 <Toto></Toto> text & </Test>";
|
||||
static string c14xml3 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> 
\n 
 <Toto></Toto> text & </Test>";
|
||||
|
||||
private XmlDocument GetDoc ()
|
||||
{
|
||||
@@ -166,7 +166,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
transform.LoadInput (doc.ChildNodes);
|
||||
Stream s = (Stream) transform.GetOutput ();
|
||||
string output = Stream2String (s);
|
||||
Assert.AreEqual ("<Test xmlns=\"http://www.go-mono.com/\"></Test>", output, "XmlChildNodes");
|
||||
Assert.AreEqual ("<Test xmlns=\"http://www.example.com/\"></Test>", output, "XmlChildNodes");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -179,7 +179,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
transform.LoadInput (doc.SelectNodes ("//*"));
|
||||
Stream s = (Stream) transform.GetOutput ();
|
||||
string output = Stream2String (s);
|
||||
string expected = "<Test xmlns=\"http://www.go-mono.com/\"><Toto></Toto></Test>";
|
||||
string expected = "<Test xmlns=\"http://www.example.com/\"><Toto></Toto></Test>";
|
||||
Assert.AreEqual (expected, output, "XmlChildNodes");
|
||||
}
|
||||
|
||||
|
@@ -223,15 +223,15 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
return sb.ToString ();
|
||||
}
|
||||
|
||||
static string xml = "<Test attrib='at ' xmlns=\"http://www.go-mono.com/\" > \r\n 
 <Toto/> text & </Test >";
|
||||
static string xml = "<Test attrib='at ' xmlns=\"http://www.example.com/\" > \r\n 
 <Toto/> text & </Test >";
|
||||
// BAD for XmlDocument input (framework 1.0 result)
|
||||
static string c14xml1 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> \r\n \r <Toto></Toto> text & </Test>";
|
||||
static string c14xml1 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> \r\n \r <Toto></Toto> text & </Test>";
|
||||
// GOOD for Stream input
|
||||
static string c14xml2 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> \n 
 <Toto></Toto> text & </Test>";
|
||||
static string c14xml2 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> \n 
 <Toto></Toto> text & </Test>";
|
||||
// GOOD for XmlDocument input. The difference is because once
|
||||
// xml string is loaded to XmlDocument, there is no difference
|
||||
// between \r and 
, so every \r must be handled as 
.
|
||||
static string c14xml3 = "<Test xmlns=\"http://www.go-mono.com/\" attrib=\"at \"> 
\n 
 <Toto></Toto> text & </Test>";
|
||||
static string c14xml3 = "<Test xmlns=\"http://www.example.com/\" attrib=\"at \"> 
\n 
 <Toto></Toto> text & </Test>";
|
||||
|
||||
private XmlDocument GetDoc ()
|
||||
{
|
||||
@@ -260,7 +260,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
transform.LoadInput (doc.ChildNodes);
|
||||
Stream s = (Stream) transform.GetOutput ();
|
||||
string output = Stream2String (s);
|
||||
Assert.AreEqual ("<Test xmlns=\"http://www.go-mono.com/\"></Test>", output, "XmlChildNodes");
|
||||
Assert.AreEqual ("<Test xmlns=\"http://www.example.com/\"></Test>", output, "XmlChildNodes");
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -273,7 +273,7 @@ namespace MonoTests.System.Security.Cryptography.Xml {
|
||||
transform.LoadInput (doc.SelectNodes ("//*"));
|
||||
Stream s = (Stream) transform.GetOutput ();
|
||||
string output = Stream2String (s);
|
||||
string expected = "<Test xmlns=\"http://www.go-mono.com/\"><Toto></Toto></Test>";
|
||||
string expected = "<Test xmlns=\"http://www.example.com/\"><Toto></Toto></Test>";
|
||||
Assert.AreEqual (expected, output, "XmlChildNodes");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user