StaticVoidArgsMethod() public static method

public static StaticVoidArgsMethod ( string sarg, int iarg ) : void
sarg string
iarg int
return void
Ejemplo n.º 1
0
        public void GetParameterInfo_Static_VoidFirstArgHelper()
        {
            ParameterInfo info = InfoHelper.GetParameterInfo <string>(p => InfoHelperClass.StaticVoidArgsMethod(InfoHelper <string> .Parameter, default(int)));

            Assert.IsNotNull(info);
            Assert.AreEqual(info.Name, "sarg");
            Assert.AreEqual(info.ParameterType, typeof(string));
        }
Ejemplo n.º 2
0
        public void GetParameterInfo_Static_VoidSecondArgHelper()
        {
            ParameterInfo info = InfoHelper.GetParameterInfo <int>(p => InfoHelperClass.StaticVoidArgsMethod(default(string), InfoHelper <int> .Parameter));

            Assert.IsNotNull(info);
            Assert.AreEqual(info.Name, "iarg");
            Assert.AreEqual(info.ParameterType, typeof(int));
        }
Ejemplo n.º 3
0
        public void GetMethodInfo_Action_Args()
        {
            MethodInfo info = InfoHelper.GetMethodInfo(
                () => InfoHelperClass.StaticVoidArgsMethod(default(string), default(int)));

            Assert.IsNotNull(info);
            Assert.AreEqual(info.Name, "StaticVoidArgsMethod");
        }