public void SetupSourceFile()
        {
            dir = GitTests.RepoPath;
            GitReset();
            var fName = "ClassA.cs";

            sourceFile = PipelineComponentsFactory.GetSourceFileForFile(fName);
        }
        public void TestSetterInjection()
        {
            var source             = PipelineComponentsFactory.GetSourceFileForFile("WithSetter.cs");
            var sourceFileAnalyzer = new SourceFileAnalyzer(source);

            var blocks = sourceFileAnalyzer.GetCodeBlocks();

            Assert.IsTrue(blocks.Count == 1);
            Assert.IsTrue(blocks[0].IsMethod);
            Assert.IsTrue(blocks[0].methodName.Equals("testSetter.set"));
            Assert.IsTrue(blocks[0].Statements.Count == 3);
        }