コード例 #1
0
        private static MethodExistsConstraint HasSyncMethod(UnitySyncMethodName methodName)
        {
            return((MethodExistsConstraint)Has.Method(methodName.ToString()).Using(SyncMethodSearch));

            MethodBase[] SyncMethodSearch(Type type, string name)
            {
                return(new MethodBase[] { UnitySolutionSyncTestUtilities.GetStaticSyncMethodFor(type, name) });
            }
        }
コード例 #2
0
 public static MethodInfo GetStaticSyncMethodFor <TProcessor>(UnitySyncMethodName methodName)
     where TProcessor : AssetPostprocessor
 {
     return(GetStaticSyncMethodFor(typeof(TProcessor), methodName.ToString()));
 }
コード例 #3
0
 public static object InvokeStaticSyncMethodFor <TProcessor>(
     UnitySyncMethodName method,
     params object[] parameters) where TProcessor : AssetPostprocessor
 {
     return(InvokeStaticMethod(GetStaticSyncMethodFor <TProcessor>(method), parameters));
 }