public void ctor2() { ScriptEventDescriptor sd = new ScriptEventDescriptor("eventName", true, "serverPropertyName"); Assert.AreEqual("eventName", sd.EventName, "A1"); Assert.AreEqual("eventName", sd.MemberName, "A2"); Assert.AreEqual(true, sd.SupportsActions, "A3"); Assert.AreEqual("serverPropertyName", sd.ServerPropertyName, "A4"); }
void DoEvent(ScriptEventDescriptor e, string eventName, bool supportsActions) { Assert.AreEqual(eventName, e.EventName, eventName + " EventName"); Assert.AreEqual(eventName, e.MemberName, eventName + " MemberName"); Assert.AreEqual(supportsActions, e.SupportsActions, eventName + " SupportsActions"); }
public void nulltest2() { ScriptEventDescriptor sd = new ScriptEventDescriptor("eventName", true, null); Assert.AreEqual("", sd.ServerPropertyName, "A1"); }
public void nulltest1() { ScriptEventDescriptor sd = new ScriptEventDescriptor(null, true); }