예제 #1
0
        public void InputShouldBeCleaned(string input, string expected)
        {
            var    paddingCleaner = new PaddingCleaner();
            string output         = paddingCleaner.Clean(input);

            output.Should().Be(expected);
        }
예제 #2
0
        public static CompilationUnitSyntax Parse(string input)
        {
            var                   paddingCleaner = new PaddingCleaner();
            string                cleanInput     = paddingCleaner.Clean(input);
            SyntaxTree            syntaxTree     = CSharpSyntaxTree.ParseText(cleanInput);
            CompilationUnitSyntax root           = syntaxTree.GetCompilationUnitRoot();

            return(root);
        }