Ejemplo n.º 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;
 }
Ejemplo n.º 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));
        }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }