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) }); } }
public static MethodInfo GetStaticSyncMethodFor <TProcessor>(UnitySyncMethodName methodName) where TProcessor : AssetPostprocessor { return(GetStaticSyncMethodFor(typeof(TProcessor), methodName.ToString())); }
public static object InvokeStaticSyncMethodFor <TProcessor>( UnitySyncMethodName method, params object[] parameters) where TProcessor : AssetPostprocessor { return(InvokeStaticMethod(GetStaticSyncMethodFor <TProcessor>(method), parameters)); }