Skip to content

Commit 7810d71

Browse files
committed
Shorter test names.
1 parent eb98ae9 commit 7810d71

18 files changed

+150
-150
lines changed

test/Microsoft.DotNet.ApiDiff.Tests/Diff.Assembly.Tests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Microsoft.DotNet.ApiDiff.Tests;
66
public class DiffAssemblyTests : DiffBaseTests
77
{
88
[Fact]
9-
public Task TestAssemblyAdd() => RunTestAsync(
9+
public Task AssemblyAdd() => RunTestAsync(
1010
before: [],
1111
after: [("MyAddedAssembly.dll", """
1212
namespace MyNamespace
@@ -28,7 +28,7 @@ public struct MyStruct
2828
});
2929

3030
[Fact]
31-
public Task TestAssemblyChange() => RunTestAsync(
31+
public Task AssemblyChange() => RunTestAsync(
3232
before: [("MyBeforeAssembly.dll", """
3333
namespace MyNamespace
3434
{
@@ -65,7 +65,7 @@ public struct MyStruct
6565
});
6666

6767
[Fact]
68-
public Task TestAssemblyDelete() => RunTestAsync(
68+
public Task AssemblyDelete() => RunTestAsync(
6969
before: [("MyRemovedAssembly.dll", """
7070
namespace MyNamespace
7171
{
@@ -87,7 +87,7 @@ public struct MyStruct
8787
});
8888

8989
[Fact]
90-
public Task TestAssemblyUnchanged() => RunTestAsync(
90+
public Task AssemblyUnchanged() => RunTestAsync(
9191
before: [("MyAssembly.dll", """
9292
namespace MyNamespace
9393
{

test/Microsoft.DotNet.ApiDiff.Tests/Diff.Attribute.Tests.cs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class DiffAttributeTests : DiffBaseTests
88
#region Type attributes
99

1010
[Fact]
11-
public Task TestTypeAttributeAdd() => RunTestAsync(
11+
public Task TypeAttributeAdd() => RunTestAsync(
1212
beforeCode: """
1313
namespace MyNamespace
1414
{
@@ -49,7 +49,7 @@ public class MyClass
4949
attributesToExclude: []);
5050

5151
[Fact]
52-
public Task TestTypeAttributeDeleteAndAdd() =>
52+
public Task TypeAttributeDeleteAndAdd() =>
5353
// Added APIs always show up at the end.
5454
RunTestAsync(
5555
beforeCode: """
@@ -105,7 +105,7 @@ public class MyClass
105105
attributesToExclude: []);
106106

107107
[Fact]
108-
public Task TestTypeAttributeSwitch() => RunTestAsync(
108+
public Task TypeAttributeSwitch() => RunTestAsync(
109109
beforeCode: """
110110
namespace MyNamespace
111111
{
@@ -159,7 +159,7 @@ public class MyClass
159159
attributesToExclude: []);
160160

161161
[Fact]
162-
public Task TestTypeChangeAndAttributeAdd() => RunTestAsync(
162+
public Task TypeChangeAndAttributeAdd() => RunTestAsync(
163163
beforeCode: """
164164
namespace MyNamespace
165165
{
@@ -206,7 +206,7 @@ namespace MyNamespace
206206
attributesToExclude: []);
207207

208208
[Fact]
209-
public Task TestTypeChangeButAttributeStays() => RunTestAsync(
209+
public Task TypeChangeButAttributeStays() => RunTestAsync(
210210
beforeCode: """
211211
namespace MyNamespace
212212
{
@@ -259,7 +259,7 @@ namespace MyNamespace
259259
#region Member attributes
260260

261261
[Fact]
262-
public Task TestMemberAttributeAdd() => RunTestAsync(
262+
public Task MemberAttributeAdd() => RunTestAsync(
263263
beforeCode: """
264264
namespace MyNamespace
265265
{
@@ -303,7 +303,7 @@ public class MyClass
303303
attributesToExclude: []);
304304

305305
[Fact]
306-
public Task TestMemberAttributeDeleteAndAdd() =>
306+
public Task MemberAttributeDeleteAndAdd() =>
307307
// Added APIs always show up at the end.
308308
RunTestAsync(
309309
beforeCode: """
@@ -361,7 +361,7 @@ public class MyClass
361361
attributesToExclude: []);
362362

363363
[Fact]
364-
public Task TestMemberAttributeSwitch() => RunTestAsync(
364+
public Task MemberAttributeSwitch() => RunTestAsync(
365365
beforeCode: """
366366
namespace MyNamespace
367367
{
@@ -419,7 +419,7 @@ public class MyClass
419419
attributesToExclude: []);
420420

421421
[Fact]
422-
public Task TestMemberChangeAndAttributeAdd() => RunTestAsync(
422+
public Task MemberChangeAndAttributeAdd() => RunTestAsync(
423423
beforeCode: """
424424
namespace MyNamespace
425425
{
@@ -466,7 +466,7 @@ public class MyClass
466466
attributesToExclude: []);
467467

468468
[Fact]
469-
public Task TestMemberChangeButAttributeStays() => RunTestAsync(
469+
public Task MemberChangeButAttributeStays() => RunTestAsync(
470470
beforeCode: """
471471
namespace MyNamespace
472472
{
@@ -520,7 +520,7 @@ public class MyClass
520520

521521
//[Fact]
522522
[Fact(Skip = "Parameter attributes are not showing up in the syntax tree.")]
523-
internal void TestParameterAttributeAdd() => RunTestAsync(
523+
public Task ParameterAttributeAdd() => RunTestAsync(
524524
beforeCode: """
525525
namespace MyNamespace
526526
{
@@ -571,7 +571,7 @@ public class MyClass
571571
#region Attribute list expansion
572572

573573
[Fact]
574-
public Task TestTypeAttributeListExpansion() => RunTestAsync(
574+
public Task TypeAttributeListExpansion() => RunTestAsync(
575575
beforeCode: """
576576
namespace MyNamespace
577577
{
@@ -623,7 +623,7 @@ public class MyClass
623623
attributesToExclude: []);
624624

625625
[Fact]
626-
public Task TestMethodAttributeListExpansion() => RunTestAsync(
626+
public Task MethodAttributeListExpansion() => RunTestAsync(
627627
beforeCode: """
628628
namespace MyNamespace
629629
{
@@ -679,7 +679,7 @@ public class MyClass
679679

680680
//[Fact]
681681
[Fact(Skip = "Parameter attributes are not showing up in the syntax tree.")]
682-
internal void TestParameterAttributeListNoExpansion() => RunTestAsync(
682+
public Task ParameterAttributeListNoExpansion() => RunTestAsync(
683683
beforeCode: """
684684
namespace MyNamespace
685685
{
@@ -740,7 +740,7 @@ public class MyClass
740740
#region Attribute exclusion
741741

742742
[Fact]
743-
public Task TestSuppressAllDefaultAttributes() =>
743+
public Task SuppressAllDefaultAttributes() =>
744744
// The attributes that should get hidden in this test must all be part of
745745
// the DiffGeneratorFactory.DefaultAttributesToExclude list.
746746
RunTestAsync(
@@ -786,7 +786,7 @@ public class MyClass
786786
attributesToExclude: null); // null forces using the default list
787787

788788
[Fact]
789-
public Task TestSuppressNone() => RunTestAsync(
789+
public Task SuppressNone() => RunTestAsync(
790790
beforeCode: """
791791
namespace MyNamespace
792792
{
@@ -833,7 +833,7 @@ public class MyClass
833833
attributesToExclude: []);
834834

835835
[Fact]
836-
public Task TestSuppressOnlyCustom() => RunTestAsync(
836+
public Task SuppressOnlyCustom() => RunTestAsync(
837837
beforeCode: """
838838
namespace MyNamespace
839839
{
@@ -978,7 +978,7 @@ public class MyClass
978978
#region Attributes with arguments
979979

980980
[Fact]
981-
public Task TestAttributeWithArguments() => RunTestAsync(
981+
public Task AttributeWithArguments() => RunTestAsync(
982982
beforeCode: """
983983
namespace MyNamespace
984984
{

test/Microsoft.DotNet.ApiDiff.Tests/Diff.Class.Tests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class DiffClassTests : DiffBaseTests
88
#region Classes
99

1010
[Fact]
11-
public Task TestClassAdd() => RunTestAsync(
11+
public Task ClassAdd() => RunTestAsync(
1212
beforeCode: """
1313
namespace MyNamespace
1414
{
@@ -39,7 +39,7 @@ namespace MyNamespace
3939
""");
4040

4141
[Fact]
42-
public Task TestClassChange() => RunTestAsync(
42+
public Task ClassChange() => RunTestAsync(
4343
beforeCode: """
4444
namespace MyNamespace
4545
{
@@ -77,7 +77,7 @@ namespace MyNamespace
7777
""");
7878

7979
[Fact]
80-
public Task TestClassDelete() => RunTestAsync(
80+
public Task ClassDelete() => RunTestAsync(
8181
beforeCode: """
8282
namespace MyNamespace
8383
{

test/Microsoft.DotNet.ApiDiff.Tests/Diff.Constructor.Tests.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class DiffConstructorTests : DiffBaseTests
1212
#region Constructors
1313

1414
[Fact]
15-
public Task TestConstructorAdd() => RunTestAsync(
15+
public Task ConstructorAdd() => RunTestAsync(
1616
beforeCode: """
1717
namespace MyNamespace
1818
{
@@ -43,7 +43,7 @@ public class MyClass
4343
""", hideImplicitDefaultConstructors: true);
4444

4545
[Fact]
46-
public Task TestConstructorChange() => RunTestAsync(
46+
public Task ConstructorChange() => RunTestAsync(
4747
beforeCode: """
4848
namespace MyNamespace
4949
{
@@ -78,7 +78,7 @@ public class MyClass
7878
""", hideImplicitDefaultConstructors: true);
7979

8080
[Fact]
81-
public Task TestConstructorDelete() => RunTestAsync(
81+
public Task ConstructorDelete() => RunTestAsync(
8282
beforeCode: """
8383
namespace MyNamespace
8484
{
@@ -113,7 +113,7 @@ public class MyClass
113113
#region Primary constructors
114114

115115
[Fact]
116-
public Task TestPrimaryConstructorAdd() => RunTestAsync(
116+
public Task PrimaryConstructorAdd() => RunTestAsync(
117117
beforeCode: """
118118
namespace MyNamespace
119119
{
@@ -143,7 +143,7 @@ public class MyClass
143143
""", hideImplicitDefaultConstructors: true);
144144

145145
[Fact]
146-
public Task TestPrimaryConstructorChange() => RunTestAsync(
146+
public Task PrimaryConstructorChange() => RunTestAsync(
147147
// This isn't really a modification, but a deletion and an addition, and since
148148
// deletions show up before additions, that explains the order of the expected code.
149149
beforeCode: """
@@ -178,7 +178,7 @@ public class MyClass
178178
""", hideImplicitDefaultConstructors: true);
179179

180180
[Fact]
181-
public Task TestPrimaryConstructorDelete() => RunTestAsync(
181+
public Task PrimaryConstructorDelete() => RunTestAsync(
182182
beforeCode: """
183183
namespace MyNamespace
184184
{
@@ -212,7 +212,7 @@ public class MyClass
212212
#region Hide Default constructors
213213

214214
[Fact]
215-
public Task TestAddHideImplicitDefaultConstructors() => RunTestAsync(
215+
public Task AddHideImplicitDefaultConstructors() => RunTestAsync(
216216
beforeCode: """
217217
namespace MyNamespace
218218
{
@@ -246,7 +246,7 @@ namespace MyNamespace
246246
hideImplicitDefaultConstructors: true);
247247

248248
[Fact]
249-
public Task TestChangeHideImplicitDefaultConstructors() => RunTestAsync(
249+
public Task ChangeHideImplicitDefaultConstructors() => RunTestAsync(
250250
// This isn't really a modification, but a deletion and an addition, and since
251251
// deletions show up before additions, that explains the order of the expected code.
252252
beforeCode: """
@@ -293,7 +293,7 @@ namespace MyNamespace
293293
hideImplicitDefaultConstructors: true);
294294

295295
[Fact]
296-
public Task TestNestedTypeAddHideImplicitDefaultConstructors() => RunTestAsync(
296+
public Task NestedTypeAddHideImplicitDefaultConstructors() => RunTestAsync(
297297
beforeCode: """
298298
namespace MyNamespace
299299
{
@@ -333,7 +333,7 @@ namespace MyNamespace
333333
hideImplicitDefaultConstructors: true);
334334

335335
[Fact]
336-
public Task TestNestedTypeChangeHideImplicitDefaultConstructors() => RunTestAsync(
336+
public Task NestedTypeChangeHideImplicitDefaultConstructors() => RunTestAsync(
337337
// This isn't really a modification, but a deletion and an addition, and since
338338
// deletions show up before additions, that explains the order of the expected code.
339339
beforeCode: """
@@ -393,7 +393,7 @@ public class MyClass1
393393
#region Visibility
394394

395395
[Fact]
396-
public Task TestDefaultConstructorMakePrivate() => RunTestAsync(
396+
public Task DefaultConstructorMakePrivate() => RunTestAsync(
397397
beforeCode: """
398398
namespace MyNamespace
399399
{
@@ -427,7 +427,7 @@ public class MyClass
427427
""");
428428

429429
[Fact]
430-
public Task TestDefaultConstructorMakePublic() => RunTestAsync(
430+
public Task DefaultConstructorMakePublic() => RunTestAsync(
431431
beforeCode: """
432432
namespace MyNamespace
433433
{

test/Microsoft.DotNet.ApiDiff.Tests/Diff.Delegate.Tests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class DiffDelegateTests : DiffBaseTests
88
#region Delegates
99

1010
[Fact]
11-
public Task TestDelegateAdd() => RunTestAsync(
11+
public Task DelegateAdd() => RunTestAsync(
1212
beforeCode: """
1313
namespace MyNamespace
1414
{
@@ -34,7 +34,7 @@ namespace MyNamespace
3434
""");
3535

3636
[Fact]
37-
public Task TestDelegateChange() => RunTestAsync(
37+
public Task DelegateChange() => RunTestAsync(
3838
beforeCode: """
3939
namespace MyNamespace
4040
{
@@ -56,7 +56,7 @@ namespace MyNamespace
5656
""");
5757

5858
[Fact]
59-
public Task TestDelegateDelete() => RunTestAsync(
59+
public Task DelegateDelete() => RunTestAsync(
6060
beforeCode: """
6161
namespace MyNamespace
6262
{

test/Microsoft.DotNet.ApiDiff.Tests/Diff.Destructor.Tests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Microsoft.DotNet.ApiDiff.Tests;
66
public class DiffDestructorTests : DiffBaseTests
77
{
88
[Fact]
9-
public Task TestDestructorAdd() => RunTestAsync(
9+
public Task DestructorAdd() => RunTestAsync(
1010
beforeCode: """
1111
namespace MyNamespace
1212
{
@@ -37,7 +37,7 @@ public class MyClass
3737
""", hideImplicitDefaultConstructors: true);
3838

3939
[Fact]
40-
public Task TestDestructorDelete() => RunTestAsync(
40+
public Task DestructorDelete() => RunTestAsync(
4141
beforeCode: """
4242
namespace MyNamespace
4343
{

0 commit comments

Comments
 (0)