+2010-04-22 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XamlMemberInvokerTest.cs : make sure that the invoker returns Type
+ for Type member here. (XamlObjectReader returns string for some
+ cases, so I wanted to make sure it is *not* here.)
+
2010-04-14 Atsushi Enomoto <atsushi@ximian.com>
* XamlTypeTypeConverterTest.cs : more conversion tests.
using System.Collections.Generic;
using System.Reflection;
using System.Text;
+using System.Windows.Markup;
using System.Xaml;
using System.Xaml.Schema;
using System.Xml;
i.GetValue (new StringBuilder ());
}
+ [Test]
+ public void GetValueOnTypeValue ()
+ {
+ var xm = XamlLanguage.Type.GetMember ("Type");
+ var i = new XamlMemberInvoker (xm);
+ var o = i.GetValue (new TypeExtension (typeof (int)));
+ Assert.AreEqual (typeof (int), o, "#1");
+ }
+
[Test]
[ExpectedException (typeof (TargetException))]
public void SetValueOnIrrelevantObject ()