private static void AssertLinesOfCode(string code, params int[] expectedExecutableLines)
        {
            var walker = new Metrics.CSharp.ExecutableLinesWalker();

            walker.Visit(CSharpSyntaxTree.ParseText(code).GetRoot());
            walker.ExecutableLines.Should().BeEquivalentTo(expectedExecutableLines);
        }
        private static void AssertLinesOfCode(int expectedLineCount, string code)
        {
            var walker = new Metrics.CSharp.ExecutableLinesWalker();

            walker.Visit(CSharpSyntaxTree.ParseText(code).GetRoot());
            walker.ExecutableLineCount.Should().Be(expectedLineCount);
        }
        private static void AssertLinesOfCode(string code, params int[] expectedExecutableLines)
        {
            (var syntaxTree, var semanticModel) = TestHelper.Compile(code);
            var walker = new Metrics.CSharp.ExecutableLinesWalker(semanticModel);

            walker.Visit(syntaxTree.GetRoot());
            walker.ExecutableLines.Should().BeEquivalentTo(expectedExecutableLines);
        }