StaticVoidMethod() public static method

public static StaticVoidMethod ( ) : void
return void
Ejemplo n.º 1
0
        public void GetMethodInfo_Action_NoArgs()
        {
            MethodInfo info = InfoHelper.GetMethodInfo(() => InfoHelperClass.StaticVoidMethod());

            Assert.IsNotNull(info);
            Assert.AreEqual(info.Name, "StaticVoidMethod");
        }
Ejemplo n.º 2
0
        public void GetParameterInfo_Static_InvalidThrowIfNotFoundThrows()
        {
            ParameterInfo info = InfoHelper.GetParameterInfo <int>(p => InfoHelperClass.StaticVoidMethod(), true);

            Assert.Fail("Didn't throw");
        }
Ejemplo n.º 3
0
        public void GetParameterInfo_Static_Invalid_NotUsed()
        {
            ParameterInfo info = InfoHelper.GetParameterInfo <int>(p => InfoHelperClass.StaticVoidMethod());

            Assert.IsNull(info);
        }