コード例 #1
0
 public void Add(IAssemblyInstrumentation instrumentation)
 {
     if (null == instrumentation)
     {
         throw new ArgumentNullException("instrumentation");
     }
     _instrumentations.Add(instrumentation);
 }
コード例 #2
0
ファイル: TATestCaseBase.cs プロジェクト: erdincay/db4o
		private string InstrumentAssembly(AssemblyDefinition assembly, IAssemblyInstrumentation instrumentation)
		{
			StringWriter output = new StringWriter();
			Trace.Listeners.Add(new TextWriterTraceListener(output));

			string assemblyFullPath = assembly.MainModule.FullyQualifiedName;
			InstrumentationContext context = new InstrumentationContext(Configuration(assemblyFullPath), assembly);

			instrumentation.Run(context);
			context.SaveAssembly();

			VerifyAssembly(assemblyFullPath);

			return output.ToString();
		}
コード例 #3
0
        private string InstrumentAssembly(AssemblyDefinition assembly, IAssemblyInstrumentation instrumentation)
        {
            StringWriter output = new StringWriter();

            Trace.Listeners.Add(new TextWriterTraceListener(output));

            string assemblyFullPath        = assembly.MainModule.FullyQualifiedName;
            InstrumentationContext context = new InstrumentationContext(Configuration(assemblyFullPath), assembly);

            instrumentation.Run(context);
            context.SaveAssembly();

            VerifyAssembly(assemblyFullPath);

            return(output.ToString());
        }
コード例 #4
0
 public void Add(IAssemblyInstrumentation instrumentation)
 {
     if (null == instrumentation) throw new ArgumentNullException("instrumentation");
     _instrumentations.Add(instrumentation);
 }