Exemplo n.º 1
0
    static AssemblyWithAttributeOnModuleTests()
    {
        var weavingTask = new ModuleWeaver();

        testResult = weavingTask.ExecuteTestRun("AssemblyWithAttributeOnModule.dll",
                                                ignoreCodes: IgnoreCodes.GetIgnoreCoders()
#if NETCOREAPP2_1
                                                , runPeVerify: false
#endif
                                                );
    }
Exemplo n.º 2
0
    static WithoutInterceptorTests()
    {
        var weavingTask = new ModuleWeaver();

        testResult = weavingTask.ExecuteTestRun("AssemblyWithoutInterceptor.dll",
                                                ignoreCodes: IgnoreCodes.GetIgnoreCoders()
#if NETCOREAPP2_0
                                                , runPeVerify: false
#endif
                                                );
    }
    static WithInterceptorAndFormattingTests()
    {
        var weavingTask = new ModuleWeaver();

        testResult = weavingTask.ExecuteTestRun("AssemblyWithInterceptorAndFormatting.dll",
                                                ignoreCodes: IgnoreCodes.GetIgnoreCoders()
#if NETCOREAPP2_1
                                                , runPeVerify: false
#endif
                                                ); var methodTimeLogger = testResult.Assembly.GetType("MethodTimeLogger");
        methodBaseField = methodTimeLogger.GetField("MethodBase");
        messagesField   = methodTimeLogger.GetField("Messages");
    }