コード例 #1
0
        public void Test_LoadingAssembly(ICirData cirData, string assemblyToLoad, bool verify, bool verbose)
        {
            AssemblyDefinition assemblyDefinition = CecilUtils.getAssembly(assemblyToLoad);
            if (assemblyDefinition == null)
                return;

            var loadTimer = new O2Timer("Assembly " + Path.GetFileName(assemblyToLoad) + " Loaded in");
            if (verbose)
                loadTimer.start();
            cirFactory.processAssemblyDefinition(cirData, assemblyDefinition,assemblyToLoad);
            if (verbose)
                loadTimer.stop();
            if (verify)
            {
                var checkTimer = new O2Timer("       functions checked in  ");
                if (verbose)
                    checkTimer.start();
                checkThatAllFunctionsMatch(cirData, assemblyDefinition);
                if (verbose)
                    checkTimer.stop();
            }
        }