public SetValue ( object instance, object value ) : void | ||
instance | object | |
value | object | |
return | void |
public void SetValueOnReadOnlyProperty () { var pi = str_len; var i = new XamlMemberInvoker (new XamlMember (pi, sctx)); i.SetValue ("hello", 5); }
public void SetValueNullObject () { var pi = sb_len; var i = new XamlMemberInvoker (new XamlMember (pi, sctx)); i.SetValue (null, 5); }
public void SetValueOnEvent () { var ei = ass_load; var i = new XamlMemberInvoker (new XamlMember (ei, sctx)); i.SetValue (AppDomain.CurrentDomain, new AssemblyLoadEventHandler (DummyAssemblyLoad)); }
public void SetValueOnEventValueMismatch () { var ei = ass_load; var i = new XamlMemberInvoker (new XamlMember (ei, sctx)); i.SetValue (AppDomain.CurrentDomain, 5); }
public void SetValueOnIrrelevantObject () { var pi = sb_len; var i = new XamlMemberInvoker (new XamlMember (pi, sctx)); i.SetValue ("hello", 5); }
public void SetValueOnReadWriteProperty () { var pi = sb_len; var i = new XamlMemberInvoker (new XamlMember (pi, sctx)); var sb = new StringBuilder (); i.SetValue (sb, 5); Assert.AreEqual (5, sb.Length, "#1"); }