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())); }