Author: atsushi
Date: 2007-12-10 04:15:43 -0500 (Mon, 10 Dec 2007)
New Revision: 91030
Modified:
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Syndication/ChangeLog
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Syndication/SyndicationLinkTest.cs
Log:
2007-12-10 Atsushi Enomoto <[EMAIL PROTECTED]>
* SyndicationLinkTest.cs : test RelationshipType too. Tiny renaming.
Modified:
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Syndication/ChangeLog
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Syndication/ChangeLog
2007-12-10 09:07:54 UTC (rev 91029)
+++
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Syndication/ChangeLog
2007-12-10 09:15:43 UTC (rev 91030)
@@ -1,3 +1,7 @@
2007-12-10 Atsushi Enomoto <[EMAIL PROTECTED]>
+ * SyndicationLinkTest.cs : test RelationshipType too. Tiny renaming.
+
+2007-12-10 Atsushi Enomoto <[EMAIL PROTECTED]>
+
* SyndicationLinkTest.cs : new test.
Modified:
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Syndication/SyndicationLinkTest.cs
===================================================================
---
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Syndication/SyndicationLinkTest.cs
2007-12-10 09:07:54 UTC (rev 91029)
+++
trunk/olive/class/System.ServiceModel.Web/Test/System.ServiceModel.Syndication/SyndicationLinkTest.cs
2007-12-10 09:15:43 UTC (rev 91030)
@@ -97,17 +97,28 @@
}
[Test]
- public void TestMediaType ()
+ public void MediaType ()
{
SyndicationLink link = new SyndicationLink (new Uri
("http://mono-project.com/index.rss"));
link.MediaType = "text/xml";
Assert.AreEqual ("text/xml", link.MediaType, "#1");
link.MediaType = null;
Assert.IsNull (link.MediaType, "#2");
- link.MediaType = "WTF";
+ link.MediaType = "WTF"; // no error
}
[Test]
+ public void RelationshipType ()
+ {
+ SyndicationLink link = new SyndicationLink (new Uri
("http://mono-project.com/index.rss"));
+ link.RelationshipType = "alternate";
+ Assert.AreEqual ("alternate", link.RelationshipType,
"#1");
+ link.RelationshipType = null;
+ Assert.IsNull (link.RelationshipType, "#2");
+ link.RelationshipType = "WTF"; // no error
+ }
+
+ [Test]
public void Length ()
{
SyndicationLink link = new SyndicationLink (new Uri
("http://mono-project.com/index.rss"));
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches