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)); }
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)); }
public void GetMethodInfo_Action_Args() { MethodInfo info = InfoHelper.GetMethodInfo( () => InfoHelperClass.StaticVoidArgsMethod(default(string), default(int))); Assert.IsNotNull(info); Assert.AreEqual(info.Name, "StaticVoidArgsMethod"); }