Exemplo n.º 1
0
        /// <summary>
        /// Saves an image of a mutated assembly into the root of the test
        /// directory.
        /// </summary>
        /// <param name="module"></param>
		public void SaveAssembly(Module module)
		{
		    string fileName = Path.GetFileName(module.AssemblyLocation);
		    string path = Path.Combine(_folder, fileName);
            _log.Debug("Writing assembly \"{0}\" to \"{1}\".", fileName, _folder);
            module.AssemblyDefinition.Write(path);
		}
Exemplo n.º 2
0
 /// <summary>
 /// Constructs the immutable MutantMetaData class.
 /// </summary>
 /// <param name="module"></param>
 /// <param name="description"></param>
 /// <param name="methodDefinition"></param>
 /// <param name="ilIndex"></param>
 /// <param name="testDirectory"></param>
 public MutantMetaData(Module module, string description, MethodDefinition methodDefinition, int ilIndex, TestDirectory testDirectory)
 {
     Module = module;
     Description = description;
     MethodDefinition = methodDefinition;
     ILIndex = ilIndex;
     TestDirectory = testDirectory;
 }