public void TestHooksRenderer_UNIT()
        {
            List <Hooks> hooksList = PipelineComponentsFactory.GenerateHookList(sourceFile);

            HooksRenderer hooksRenderer = new HooksRenderer();
            string        outText       = hooksRenderer.GetHookedCode(sourceFile, hooksList);

            Assert.IsTrue(outText.Contains("OnMethodEnter"));
            Assert.IsTrue(outText.Contains("LogLineRun"));
            Assert.IsTrue(outText.Contains("using CodeRecordHelpers;"));
            File.WriteAllText("/tmp/code.cs", outText);
        }
        public void Test_INTEGRATION_ANALYSER_HOOKGENERATOR_RENDERER()
        {
            var sourceFileAnalyzer = new SourceFileAnalyzer(this.sourceFile);
            var blocks             = sourceFileAnalyzer.GetCodeBlocks();

            CodeblocksToHooksGenerator gen = new CodeblocksToHooksGenerator();
            var hooksList = gen.GenerateHooks(blocks);

            HooksRenderer hooksRenderer = new HooksRenderer();
            string        outText       = hooksRenderer.GetHookedCode(sourceFile, hooksList);

            Assert.IsTrue(outText.Contains("OnMethodEnter"));
            Assert.IsTrue(outText.Contains("using CodeRecordHelpers;"));
            File.WriteAllText("/tmp/code.cs", outText);
        }