示例#1
0
 private MutationTest(string testAssemblyLocation, Type targetType, string targetMethod, TestsDispatcher dispatcher, IDictionary <string, string> testMethods)
 {
     TestAssemblyLocation = testAssemblyLocation;
     TargetType           = targetType;
     TargetMethod         = targetMethod;
     _dispatcher          = dispatcher;
     _testMethods         = testMethods;
 }
示例#2
0
        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));
        }
示例#3
0
 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;
 }
示例#4
0
 internal MutationTest(string testAssemblyLocation, Type targetType, string targetMethod, Type[] parameterTypes, TestsDispatcher dispatcher, IDictionary <string, string> testMethods) : this(testAssemblyLocation, targetType, targetMethod, dispatcher, testMethods)
 {
     _parameterTypes = parameterTypes;
 }