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