17 references to testContainsHelper1
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (17)
Syntax\SyntaxNodeTests.cs (17)
371testContainsHelper1("#define x", SyntaxKind.DefineDirectiveTrivia);
372testContainsHelper1("#if true\r\n#elif true", SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElifDirectiveTrivia);
373testContainsHelper1("#if false\r\n#elif true", SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElifDirectiveTrivia);
374testContainsHelper1("#if false\r\n#elif false", SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElifDirectiveTrivia);
375testContainsHelper1("#elif true", SyntaxKind.BadDirectiveTrivia);
376testContainsHelper1("#if true\r\n#else", SyntaxKind.IfDirectiveTrivia, SyntaxKind.ElseDirectiveTrivia);
377testContainsHelper1("#else", SyntaxKind.BadDirectiveTrivia);
378testContainsHelper1("#if true\r\n#endif", SyntaxKind.IfDirectiveTrivia, SyntaxKind.EndIfDirectiveTrivia);
379testContainsHelper1("#endif", SyntaxKind.BadDirectiveTrivia);
380testContainsHelper1("#region\r\n#endregion", SyntaxKind.RegionDirectiveTrivia, SyntaxKind.EndRegionDirectiveTrivia);
381testContainsHelper1("#endregion", SyntaxKind.BadDirectiveTrivia);
382testContainsHelper1("#error", SyntaxKind.ErrorDirectiveTrivia);
383testContainsHelper1("#if true", SyntaxKind.IfDirectiveTrivia);
384testContainsHelper1("#nullable enable", SyntaxKind.NullableDirectiveTrivia);
385testContainsHelper1("#region enable", SyntaxKind.RegionDirectiveTrivia);
386testContainsHelper1("#undef x", SyntaxKind.UndefDirectiveTrivia);
387testContainsHelper1("#warning", SyntaxKind.WarningDirectiveTrivia);