Exemple #1
0
        public void SetRuntimeValueNull()
        {
            string       st = string.Empty;
            ActivityBind ab = new ActivityBind("ClassProvider", "Name");

            ab.SetRuntimeValue(null, null);
        }
Exemple #2
0
        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");
        }