internal override void Run(BakingContext context) { context.Owner.HandleScanningStarted(); try { context.Log(string.Format("Scanning test assembly '{0}'...", this.Settings.AssemblyFilename)); // create... var project = new TestProject(context.TestAssembly, Settings.PackageId); context.Owner.ActiveProject = project; // ok... context.Log("Finished scanning test assembly."); } finally { context.Owner.HandleScanningFinished(); } }
internal void PatchIncludes(TestProject donor) { if (donor.Name != this.Name) return; // walk... foreach (var donorClass in donor.Classes) { var ourClass = this.Classes.Where(v => v.Name == donorClass.Name).FirstOrDefault(); if(ourClass != null) { ourClass.Include = donorClass.Include; // walk... foreach(var donorMethod in donorClass.Methods) { var ourMethod = ourClass.Methods.Where(v => v.Name == donorMethod.Name).FirstOrDefault(); if(ourMethod != null) ourMethod.Include = donorMethod.Include; } } } }