Пример #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;
 }