Ejemplo n.º 1
0
        public static void Initialize(TestContext context)
        {
            var    weaver  = Weaver.FindWeaver("Mirror");
            string current = Assembly.GetExecutingAssembly().Location;
            string newPath = Path.Combine(Path.GetDirectoryName(current),
                                          $"{Path.GetFileNameWithoutExtension(current)}_modified{Path.GetExtension(current)}");

            File.Copy(current, newPath, true);
            weaver.ApplyToAssembly(newPath);
        }