@@ -39,7 +39,7 @@ public class MyClass
39
39
expectedCode : """
40
40
namespace MyNamespace
41
41
{
42
- + [MyAttribute ]
42
+ + [MyNamespace.MyAttributeAttribute ]
43
43
public class MyClass
44
44
{
45
45
}
@@ -85,17 +85,17 @@ public MyClass() { }
85
85
expectedCode : """
86
86
namespace MyNamespace
87
87
{
88
- - [System.AttributeUsage (System.AttributeTargets.All)]
88
+ - [System.AttributeUsageAttribute (System.AttributeTargets.All)]
89
89
- public class MyAttribute1Attribute : System.Attribute
90
90
- {
91
91
- public MyAttribute1Attribute();
92
92
- }
93
- - [MyAttribute1 ]
94
- + [MyAttribute2 ]
93
+ - [MyNamespace.MyAttribute1Attribute ]
94
+ + [MyNamespace.MyAttribute2Attribute ]
95
95
public class MyClass
96
96
{
97
97
}
98
- + [System.AttributeUsage (System.AttributeTargets.All)]
98
+ + [System.AttributeUsageAttribute (System.AttributeTargets.All)]
99
99
+ public class MyAttribute2Attribute : System.Attribute
100
100
+ {
101
101
+ public MyAttribute2Attribute();
@@ -149,8 +149,8 @@ public MyClass() { }
149
149
expectedCode : """
150
150
namespace MyNamespace
151
151
{
152
- - [MyAttribute1 ]
153
- + [MyAttribute2 ]
152
+ - [MyNamespace.MyAttribute1Attribute ]
153
+ + [MyNamespace.MyAttribute2Attribute ]
154
154
public class MyClass
155
155
{
156
156
}
@@ -196,7 +196,7 @@ namespace MyNamespace
196
196
- {
197
197
- public MyClass1();
198
198
- }
199
- + [MyAttribute ]
199
+ + [MyNamespace.MyAttributeAttribute ]
200
200
+ public class MyClass2
201
201
+ {
202
202
+ public MyClass2();
@@ -240,12 +240,12 @@ public MyClass2() { }
240
240
expectedCode : """
241
241
namespace MyNamespace
242
242
{
243
- - [MyAttribute ]
243
+ - [MyNamespace.MyAttributeAttribute ]
244
244
- public class MyClass1
245
245
- {
246
246
- public MyClass1();
247
247
- }
248
- + [MyAttribute ]
248
+ + [MyNamespace.MyAttributeAttribute ]
249
249
+ public class MyClass2
250
250
+ {
251
251
+ public MyClass2();
@@ -294,7 +294,7 @@ namespace MyNamespace
294
294
{
295
295
public class MyClass
296
296
{
297
- + [MyAttribute ]
297
+ + [MyNamespace.MyAttributeAttribute ]
298
298
public void MyMethod();
299
299
}
300
300
}
@@ -341,17 +341,17 @@ public void MyMethod() { }
341
341
expectedCode : """
342
342
namespace MyNamespace
343
343
{
344
- - [System.AttributeUsage (System.AttributeTargets.All)]
344
+ - [System.AttributeUsageAttribute (System.AttributeTargets.All)]
345
345
- public class MyAttribute1Attribute : System.Attribute
346
346
- {
347
347
- }
348
348
public class MyClass
349
349
{
350
- - [MyAttribute1 ]
351
- + [MyAttribute2 ]
350
+ - [MyNamespace.MyAttribute1Attribute ]
351
+ + [MyNamespace.MyAttribute2Attribute ]
352
352
public void MyMethod();
353
353
}
354
- + [System.AttributeUsage (System.AttributeTargets.All)]
354
+ + [System.AttributeUsageAttribute (System.AttributeTargets.All)]
355
355
+ public class MyAttribute2Attribute : System.Attribute
356
356
+ {
357
357
+ }
@@ -409,8 +409,8 @@ namespace MyNamespace
409
409
{
410
410
public class MyClass
411
411
{
412
- - [MyAttribute1 ]
413
- + [MyAttribute2 ]
412
+ - [MyNamespace.MyAttribute1Attribute ]
413
+ + [MyNamespace.MyAttribute2Attribute ]
414
414
public void MyMethod();
415
415
}
416
416
}
@@ -457,7 +457,7 @@ namespace MyNamespace
457
457
public class MyClass
458
458
{
459
459
- public void MyMethod1();
460
- + [MyAttribute ]
460
+ + [MyNamespace.MyAttributeAttribute ]
461
461
+ public void MyMethod2();
462
462
}
463
463
}
@@ -504,9 +504,9 @@ namespace MyNamespace
504
504
{
505
505
public class MyClass
506
506
{
507
- - [MyAttribute ]
507
+ - [MyNamespace.MyAttributeAttribute ]
508
508
- public void MyMethod1();
509
- + [MyAttribute ]
509
+ + [MyNamespace.MyAttributeAttribute ]
510
510
+ public void MyMethod2();
511
511
}
512
512
}
@@ -557,9 +557,9 @@ namespace MyNamespace
557
557
public class MyClass
558
558
{
559
559
- public MyClass(int x);
560
- + public MyClass([MyAttribute ] int x);
560
+ + public MyClass([MyNamespace.MyAttributeAttribute ] int x);
561
561
- public void MyMethod(int y);
562
- + public void MyMethod([MyAttribute ] int y);
562
+ + public void MyMethod([MyNamespace.MyAttributeAttribute ] int y);
563
563
}
564
564
}
565
565
""" ,
@@ -612,8 +612,8 @@ public class MyClass
612
612
expectedCode : """
613
613
namespace MyNamespace
614
614
{
615
- + [MyAttribute1 ]
616
- + [MyAttribute2 ]
615
+ + [MyNamespace.MyAttribute1Attribute ]
616
+ + [MyNamespace.MyAttribute2Attribute ]
617
617
public class MyClass
618
618
{
619
619
}
@@ -668,8 +668,8 @@ namespace MyNamespace
668
668
{
669
669
public class MyClass
670
670
{
671
- + [MyAttribute1 ]
672
- + [MyAttribute2 ]
671
+ + [MyNamespace.MyAttribute1Attribute ]
672
+ + [MyNamespace.MyAttribute2Attribute ]
673
673
public MyClass(int x);
674
674
}
675
675
}
@@ -726,9 +726,9 @@ namespace MyNamespace
726
726
public class MyClass
727
727
{
728
728
- public MyClass(int x);
729
- + public MyClass([MyAttribute1, MyAttribute2 ] int x);
729
+ + public MyClass([MyNamespace.MyAttribute1Attribute, MyNamespace.MyAttribute2Attribute ] int x);
730
730
- public void MyMethod(int y);
731
- + public void MyMethod([MyAttribute1, MyAttribute2 ] int y);
731
+ + public void MyMethod([MyNamespace.MyAttribute1Attribute, MyNamespace.MyAttribute2Attribute ] int y);
732
732
}
733
733
}
734
734
""" ,
@@ -773,7 +773,7 @@ public class MyClass
773
773
expectedCode : """
774
774
namespace MyNamespace
775
775
{
776
- + [MyAttribute ]
776
+ + [MyNamespace.MyAttributeAttribute ]
777
777
public class MyClass
778
778
{
779
779
}
@@ -816,14 +816,14 @@ public class MyClass
816
816
expectedCode : """
817
817
namespace MyNamespace
818
818
{
819
- + [System.ComponentModel.EditorBrowsable (System.ComponentModel.EditorBrowsableState.Never)]
820
- + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode ("Text")]
821
- + [MyAttribute ]
822
- + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode ("Text")]
819
+ + [System.ComponentModel.EditorBrowsableAttribute (System.ComponentModel.EditorBrowsableState.Never)]
820
+ + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute ("Text")]
821
+ + [MyNamespace.MyAttributeAttribute ]
822
+ + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute ("Text")]
823
823
public class MyClass
824
824
{
825
825
}
826
- + [System.AttributeUsage (System.AttributeTargets.All)]
826
+ + [System.AttributeUsageAttribute (System.AttributeTargets.All)]
827
827
+ public class MyAttributeAttribute : System.Attribute
828
828
+ {
829
829
+ public MyAttributeAttribute();
@@ -863,13 +863,13 @@ public class MyClass
863
863
expectedCode : """
864
864
namespace MyNamespace
865
865
{
866
- + [System.ComponentModel.EditorBrowsable (System.ComponentModel.EditorBrowsableState.Never)]
867
- + [System.Diagnostics.CodeAnalysis.RequiresDynamicCode ("Text")]
868
- + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode ("Text")]
866
+ + [System.ComponentModel.EditorBrowsableAttribute (System.ComponentModel.EditorBrowsableState.Never)]
867
+ + [System.Diagnostics.CodeAnalysis.RequiresDynamicCodeAttribute ("Text")]
868
+ + [System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute ("Text")]
869
869
public class MyClass
870
870
{
871
871
}
872
- + [System.AttributeUsage (System.AttributeTargets.All)]
872
+ + [System.AttributeUsageAttribute (System.AttributeTargets.All)]
873
873
+ public class MyAttributeAttribute : System.Attribute
874
874
+ {
875
875
+ public MyAttributeAttribute();
@@ -945,11 +945,11 @@ public MyClass() { }
945
945
expectedCode : """
946
946
namespace MyNamespace
947
947
{
948
- + [MyAttribute ("First", "Second")]
948
+ + [MyNamespace.MyAttributeAttribute ("First", "Second")]
949
949
public class MyClass
950
950
{
951
951
}
952
- + [System.AttributeUsage (System.AttributeTargets.All)]
952
+ + [System.AttributeUsageAttribute (System.AttributeTargets.All)]
953
953
+ public class MyAttributeAttribute : System.Attribute
954
954
+ {
955
955
+ public MyAttributeAttribute(string first, string second);
0 commit comments