Example #1
0
 public void GetMemberInfosTest()
 {   // 225 to 25 ms to5
     for (int i = 0; i < MaxTime; i++)
     {
         var mem = CTRCHelper.GetMemberInfos <MethodModel>();
     }
 }
Example #2
0
 public void GetMemberInfoTest()
 {   // 225 to 25 ms to5
     for (int i = 0; i < MaxTime; i++)
     {
         var mem = CTRCHelper.GetMemberInfos <MethodModel>().FirstOrDefault(c => c.Name == "Test1");
     }
 }
Example #3
0
        public void GetDifferentMemberInfosTest()
        {
            var t = CTRCHelper.GetMemberInfos <MethodModel>();

            Console.WriteLine(t);

            var t1 = CTRCHelper.GetMemberInfos <FieldModel>();

            Console.WriteLine(t1);
        }
Example #4
0
        public void MemberCountTest()
        {
            var members = CTRCHelper.GetMemberInfos <MethodTestModel>();

            foreach (var m in members)
            {
                Console.WriteLine(m.Name);
            }
            Assert.AreEqual(5, members.Length);
        }