31 references to TestRemoveAttributeAsync
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (31)
CodeGeneration\CodeGenerationTests.CSharp.cs (16)
1009
=>
TestRemoveAttributeAsync
<SyntaxNode>(@"[System.Serializable] class [|C|] { }", "class C { }", typeof(SerializableAttribute));
1017
=>
TestRemoveAttributeAsync
<SyntaxNode>("class C { [System.Serializable] public void [|M()|] { } }", "class C { public void M() { } }", typeof(SerializableAttribute));
1025
=>
TestRemoveAttributeAsync
<FieldDeclarationSyntax>("class C { [System.Serializable] public int [|F|]; }", "class C { public int F; }", typeof(SerializableAttribute));
1033
=>
TestRemoveAttributeAsync
<SyntaxNode>("class C { [System.Serializable] public int [|P|] { get; set; }}", "class C { public int P { get; set; } }", typeof(SerializableAttribute));
1041
=>
TestRemoveAttributeAsync
<SyntaxNode>("class C { public int P { [System.Serializable] [|get|]; set; } }", "class C { public int P { get; set; } }", typeof(SerializableAttribute));
1052
=>
TestRemoveAttributeAsync
<SyntaxNode>("[System.Serializable] enum [|C|] { One, Two }", "enum C { One, Two }", typeof(SerializableAttribute));
1060
=>
TestRemoveAttributeAsync
<SyntaxNode>("enum C { [System.Serializable] [|One|], Two }", "enum C { One, Two }", typeof(SerializableAttribute));
1068
=>
TestRemoveAttributeAsync
<SyntaxNode>("class C { [System.Serializable] public int [|this[int y]|] { get; set; }}", "class C { public int this[int y] { get; set; } }", typeof(SerializableAttribute));
1076
=>
TestRemoveAttributeAsync
<SyntaxNode>("class C { [System.Serializable] public static C operator [|+|](C c1, C c2) { return new C(); }}", "class C { public static C operator +(C c1, C c2) { return new C(); } }", typeof(SerializableAttribute));
1087
=>
TestRemoveAttributeAsync
<SyntaxNode>("[System.Serializable] delegate int [|D()|];", "delegate int D();", typeof(SerializableAttribute));
1095
=>
TestRemoveAttributeAsync
<SyntaxNode>("class C { public void M([System.Serializable] [|int x|]) { } }", "class C { public void M(int x) { } }", typeof(SerializableAttribute));
1103
=>
TestRemoveAttributeAsync
<SyntaxNode>("class C<[System.Serializable] [|T|]> { }", "class C<T> { }", typeof(SerializableAttribute));
1161
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1172
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1183
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1197
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
CodeGeneration\CodeGenerationTests.VisualBasic.cs (15)
963
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
984
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1008
=>
TestRemoveAttributeAsync
<FieldDeclarationSyntax>("""
1030
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1056
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1087
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1118
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1145
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1167
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1192
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1209
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1232
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1245
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1258
=>
TestRemoveAttributeAsync
<SyntaxNode>("""
1272
=>
TestRemoveAttributeAsync
<SyntaxNode>("""