Esempio n. 1
0
        public void Test_Invoke_With_String_Method_Name_With_Arguments()
        {
            var testObject = new TestClass();
            int add        = ObjectInvoke.Invoke <int>(testObject, "Add", 10, 50);

            Assert.AreEqual(60, add);
        }
Esempio n. 2
0
        public void Test_Invoke_With_String_Method_Name_Without_Arguments()
        {
            var testObject = new TestClass();
            int one        = ObjectInvoke.Invoke <int>(testObject, "GetOne");

            Assert.AreEqual(1, one);
        }