diff --git a/backend/RossyntBackendIntegrationTest/IntegrationTest.cs b/backend/RossyntBackendIntegrationTest/IntegrationTest.cs index 43dedbda..02ab284c 100644 --- a/backend/RossyntBackendIntegrationTest/IntegrationTest.cs +++ b/backend/RossyntBackendIntegrationTest/IntegrationTest.cs @@ -105,6 +105,13 @@ public Task CompileFileCSharp11RawStringLiterals() => RunWithHttpClient(async ht AssertNode(root["Child"]?[0]?["Child"]?[0]?["Child"]?[0]?["Child"]?[1]?["Child"]?[1]?["Child"]?[1]?["Child"]?[0], "SyntaxToken", "SyntaxToken", "InterpolatedMultiLineRawStringStartToken", "$\"\"\"\n", "8,5", false, 0); }); + [Test] + public Task CompileFileCSharp11FileScopedType() => RunWithHttpClient(async httpClient => { + var root = await CompileFile(httpClient, "file class C"); + AssertNode(root, "SyntaxNode", "CompilationUnitSyntax", "CompilationUnit", "file class C", "0,12", false, 2); + AssertNode(root["Child"]?[0]?["Child"]?[0], "SyntaxToken", "SyntaxToken", "FileKeyword", "file", "0,4", false, 1); + }); + [Test] public Task GetNodeInfo() => RunWithHttpClient(async httpClient => { var root = await CompileFile(httpClient, "using");