public void SetRuntimeValueNull() { string st = string.Empty; ActivityBind ab = new ActivityBind("ClassProvider", "Name"); ab.SetRuntimeValue(null, null); }
public void SetGetRuntimeValue() { object obj; string st = string.Empty; ClassProvider cp = new ClassProvider(); ActivityBind ab = new ActivityBind("ClassProvider", "Name"); obj = ab.GetRuntimeValue(cp, st.GetType()); Assert.AreEqual("Hello", obj.ToString(), "C1#1"); ab.SetRuntimeValue(cp, "Bye"); obj = ab.GetRuntimeValue(cp, st.GetType()); Assert.AreEqual("Bye", obj.ToString(), "C1#2"); }