public void InputShouldBeCleaned(string input, string expected) { var paddingCleaner = new PaddingCleaner(); string output = paddingCleaner.Clean(input); output.Should().Be(expected); }
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); }