protected override void CheckInstrumentationOutput(ShellUtilities.ProcessOutput output) { base.CheckInstrumentationOutput(output); Assert.AreEqual( "WARNING: Predicate 'System.Boolean ByUpperNameUnoptimizable::Match(Item)' could not be optimized. Unsupported expression: candidate.get_Name().ToUpper", output.StdErr.Trim()); Assert.AreEqual("", output.StdOut); }
private string InstrumentResource() { string resourceName = ResourceServices.CompleteResourceName(GetType(), "TABytecodeChangesSubject"); string path = CompilationServices.EmitAssemblyFromResource(resourceName); ShellUtilities.ProcessOutput output = InstrumentationServices.InstrumentAssembly("-ta", path); Assert.AreEqual(0, output.ExitCode); return(path); }