Update of /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2633/test/Spring/Spring.Core.Tests/Objects
Modified Files:
ObjectWrapperTestSuite.cs
Log Message:
add support for string to uri conversion
Index: ObjectWrapperTestSuite.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/test/Spring/Spring.Core.Tests/Objects/ObjectWrapperTestSuite.cs,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** ObjectWrapperTestSuite.cs 26 Jul 2004 07:42:53 -0000 1.19
--- ObjectWrapperTestSuite.cs 27 Jul 2004 01:58:01 -0000 1.20
***************
*** 417,420 ****
--- 417,443 ----
Assert.IsTrue(pt.stringArray[0].Equals("foo") && pt.stringArray[1].Equals("fi") && pt.stringArray[2].Equals("fi") && pt.stringArray[3].Equals("fum"), "in correct values of string array");
}
+ #region Tests for URI Properties
+
+ internal class URITestObject
+ {
+ private Uri _uri;
+ public Uri ResourceIdentifier
+ {
+ get { return _uri; }
+ set { _uri = value; }
+ }
+ }
+
+ [Test]
+ public void SetURIProperty()
+ {
+ URITestObject o = new URITestObject();
+ ObjectWrapper ow = new ObjectWrapper(o);
+
+ ow.SetPropertyValue("ResourceIdentifier", "http://www.springframework.net");
+ Assert.AreEqual("www.springframework.net", o.ResourceIdentifier.Host);
+ }
+ #endregion
+
#region Tests for Indexed Array Properties
|