private MutationTest(string testAssemblyLocation, Type targetType, string targetMethod, TestsDispatcher dispatcher, IDictionary <string, string> testMethods) { TestAssemblyLocation = testAssemblyLocation; TargetType = targetType; TargetMethod = targetMethod; _dispatcher = dispatcher; _testMethods = testMethods; }
internal static IMutationTest For(string callingAssemblyLocation, string targetClass, string returnType, string targetMethod, GenericParameter[] methodGenerics, TestsDispatcher dispatcher, IDictionary <string, string> testMethods, TypeReference[] parameterTypes) { var callingAssembly = Assembly.LoadFrom(callingAssemblyLocation); Type resolvedType = TypeResolver.ResolveTypeFromReferences(callingAssembly, targetClass); return(new MutationTest(callingAssemblyLocation, resolvedType, returnType, targetMethod, methodGenerics, parameterTypes, dispatcher, testMethods)); }
public MutationTest(string testAssemblyLocation, Type targetType, string returnType, string targetMethod, GenericParameter[] genericsParameters, TypeReference[] parameterTypes, TestsDispatcher dispatcher, IDictionary <string, string> testMethods) : this(testAssemblyLocation, targetType, targetMethod, dispatcher, testMethods) { _returnType = returnType; _genericParameters = genericsParameters; _parameterTypeReferences = parameterTypes; }
internal MutationTest(string testAssemblyLocation, Type targetType, string targetMethod, Type[] parameterTypes, TestsDispatcher dispatcher, IDictionary <string, string> testMethods) : this(testAssemblyLocation, targetType, targetMethod, dispatcher, testMethods) { _parameterTypes = parameterTypes; }