Beispiel #1
0
        protected virtual void TestQueryAllReturnsExpected(string code, TestSourceKind codeKind, string query, params string[] expected)
        {
            var current = TestSyntaxFactory.Parse(code, codeKind);
            var results = new RoslynCSharpSyntaxQueryExecutor().QueryAll(current, ParseQuery(query));

            Assert.Equal(expected, results.Select(r => r.ToString()).ToArray());
        }