Skip to content

Commit ab56392

Browse files
authored
Deduplicate runtime tests using the class name 'Test' (#61125)
1 parent c23bc3b commit ab56392

File tree

995 files changed

+11011
-11011
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

995 files changed

+11011
-11011
lines changed

src/tests/CoreMangLib/system/delegate/generics/negativegenerics.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public override void GMeth<U>(){}
1818
delegate void Open(B<int> b);
1919
delegate void GClosed<T>();
2020

21-
class Test{
21+
class Test_negativegenerics{
2222
public static int retVal=100;
2323

2424
public static int Main(){

src/tests/CoreMangLib/system/delegate/generics/ng_standard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// The .NET Foundation licenses this file to you under the MIT license.
33
using System;
44

5-
class Test{
5+
class Test_ng_standard{
66
public static int Main(){
77
Console.WriteLine("Test creation/invocation of non-generic closed instance or open static delegates over various generic methods");
88

src/tests/GC/API/GC/Collect.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
using System;
66

7-
public class Test {
7+
public class Test_Collect {
88
public static int Main() {
99

1010
Object obj1 = new Object();

src/tests/GC/API/GC/Collect0.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
using System;
66

7-
public class Test {
7+
public class Test_Collect0 {
88
public static int Main() {
99

1010
int[] array = new int[25];

src/tests/GC/API/GC/Collect1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using System;
77

8-
public class Test
8+
public class Test_Collect1
99
{
1010
public static int Main()
1111
{

src/tests/GC/API/GC/Collect_fail.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
using System;
1515

16-
public class Test
16+
public class Test_Collect_fail
1717
{
1818
public static int Main()
1919
{

src/tests/GC/API/GC/Finalize.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
using System;
77
using System.Runtime.CompilerServices;
88

9-
public class Test
9+
public class Test_Finalize
1010
{
1111
public static bool visited = false;
1212
public class Dummy
1313
{
1414
~Dummy()
1515
{
1616
Console.WriteLine("In Finalize() of Dummy");
17-
Test.visited = true;
17+
Test_Finalize.visited = true;
1818
}
1919
}
2020

src/tests/GC/API/GC/GetAllocatedBytesForCurrentThread.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Collections.Generic;
88
using System.Reflection;
99

10-
public class Test
10+
public class Test_GetAllocatedBytesForCurrentThread
1111
{
1212
static Random Rand = new Random();
1313

src/tests/GC/API/GC/GetGCMemoryInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Collections.Generic;
77
using System.Threading;
88

9-
public class Test
9+
public class Test_GetGCMemoryInfo
1010
{
1111
// Set this to false normally so the test doesn't have so much console output.
1212
static bool fPrintInfo = false;

src/tests/GC/API/GC/GetGeneration_box.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public struct StructType {
1212
public enum EnumType {
1313
}
1414

15-
public class Test {
15+
public class Test_GetGeneration_box {
1616

1717
public static int Main() {
1818
// literals

src/tests/GC/API/GC/GetGeneration_fail.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using System;
77

8-
public class Test
8+
public class Test_GetGeneration_fail
99
{
1010
public static int Main()
1111
{

src/tests/GC/API/GC/GetTotalAllocatedBytes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using System.Threading;
1010
using System.Threading.Tasks;
1111

12-
public class Test
12+
public class Test_GetTotalAllocatedBytes
1313
{
1414
struct Counts
1515
{

src/tests/GC/API/GC/KeepAlive.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using System;
1818
using System.Runtime.CompilerServices;
1919

20-
public class Test
20+
public class Test_KeepAlive
2121
{
2222
public static bool visited1 = false;
2323
public static bool visited2 = false;

src/tests/GC/API/GC/KeepAliveNull.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Runtime.CompilerServices;
88

9-
public class Test
9+
public class Test_KeepAliveNull
1010
{
1111
public static bool visited;
1212
public class Dummy

src/tests/GC/API/GC/KeepAliveRecur.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using System;
77

8-
public class Test
8+
public class Test_KeepAliveRecur
99
{
1010
public class Dummy
1111
{

src/tests/GC/API/GC/MaxGeneration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using System;
77

8-
public class Test {
8+
public class Test_MaxGeneration {
99
public static int Main() {
1010

1111
for(int i=0;i<1000;i++) {

src/tests/GC/API/GC/ReRegisterForFinalize.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using System;
77

8-
public class Test {
8+
public class Test_ReRegisterForFinalize {
99

1010
public class Dummy {
1111

src/tests/GC/API/GC/ReRegisterForFinalize_null.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using System;
77

8-
public class Test
8+
public class Test_ReRegisterForFinalize_null
99
{
1010
public bool RunTest()
1111
{
@@ -28,7 +28,7 @@ public bool RunTest()
2828

2929
public static int Main()
3030
{
31-
Test t = new Test();
31+
Test_ReRegisterForFinalize_null t = new Test_ReRegisterForFinalize_null();
3232
if (t.RunTest())
3333
{
3434
Console.WriteLine("Null Test for ReRegisterForFinalize() passed!");

src/tests/GC/API/GC/SuppressFinalize.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Runtime.CompilerServices;
88

9-
public class Test {
9+
public class Test_SuppressFinalize {
1010

1111
public class Dummy {
1212

src/tests/GC/API/GC/SuppressFinalize_Null.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using System;
77

8-
public class Test
8+
public class Test_SuppressFinalize_Null
99
{
1010
public bool RunTest()
1111
{
@@ -28,7 +28,7 @@ public bool RunTest()
2828

2929
public static int Main()
3030
{
31-
Test t = new Test();
31+
Test_SuppressFinalize_Null t = new Test_SuppressFinalize_Null();
3232
if (t.RunTest())
3333
{
3434
Console.WriteLine("Null test for SuppressFinalize() passed!");

src/tests/GC/API/GC/TotalMemory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using System;
77

8-
public class Test {
8+
public class Test_TotalMemory {
99

1010
public static int Main() {
1111

src/tests/GC/API/GC/TotalMemory2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
using System;
77

8-
public class Test
8+
public class Test_TotalMemory2
99
{
1010
public static int Main()
1111
{

src/tests/GC/API/GCHandle/AddrOfPinnedObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Runtime.InteropServices;
88

9-
public class Test
9+
public class Test_AddrOfPinnedObject
1010
{
1111
public static int Main()
1212
{

src/tests/GC/API/GCHandle/AddrOfPinnedObject_neg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Runtime.InteropServices;
88

9-
public class Test
9+
public class Test_AddrOfPinnedObject_neg
1010
{
1111
public static int Main()
1212
{

src/tests/GC/API/GCHandle/Alloc.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Runtime.InteropServices;
88

9-
public class Test
9+
public class Test_Alloc
1010
{
1111
public static int Main()
1212
{

src/tests/GC/API/GCHandle/Alloc_neg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ the handle now and fill in the object later.
1212
using System;
1313
using System.Runtime.InteropServices;
1414

15-
public class Test
15+
public class Test_Alloc_neg
1616
{
1717
public static int Main()
1818
{

src/tests/GC/API/GCHandle/Alloc_neg2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System;
99
using System.Runtime.InteropServices;
1010

11-
public class Test
11+
public class Test_Alloc_neg2
1212
{
1313
public static int Main()
1414
{

src/tests/GC/API/GCHandle/Free.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Runtime.InteropServices;
88

9-
public class Test
9+
public class Test_Free
1010
{
1111
public static int Main()
1212
{

src/tests/GC/API/GCHandle/Free_neg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Runtime.InteropServices;
88

9-
public class Test
9+
public class Test_Free_neg
1010
{
1111
public static int Main()
1212
{

src/tests/GC/API/GCHandle/HandleCopy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
using System.Runtime.CompilerServices;
1010
using System.Runtime.InteropServices;
1111

12-
public class Test
12+
public class Test_HandleCopy
1313
{
1414
public class Dummy
1515
{

src/tests/GC/API/GCHandle/IsAllocated.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Runtime.InteropServices;
88

9-
public class Test
9+
public class Test_IsAllocated
1010
{
1111
public static int Main()
1212
{

src/tests/GC/API/GCHandle/Normal.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Runtime.CompilerServices;
99
using System.Runtime.InteropServices;
1010

11-
public class Test {
11+
public class Test_Normal {
1212

1313
public class Dummy {
1414

src/tests/GC/API/GCHandle/PinObj_neg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System;
88
using System.Runtime.InteropServices;
99

10-
public class Test
10+
public class Test_PinObj_neg
1111
{
1212
public static int Main()
1313
{

src/tests/GC/API/GCHandle/Pinned.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Runtime.InteropServices;
88

9-
public class Test
9+
public class Test_Pinned
1010
{
1111
public static int Main()
1212
{

src/tests/GC/API/GCHandle/Target.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Runtime.InteropServices;
88

9-
public class Test
9+
public class Test_Target
1010
{
1111
public class Dummy
1212
{

src/tests/GC/API/GCHandle/Target_neg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System;
77
using System.Runtime.InteropServices;
88

9-
public class Test
9+
public class Test_Target_neg
1010
{
1111
public static int Main()
1212
{

src/tests/GC/API/GCHandle/Weak.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Runtime.CompilerServices;
99
using System.Runtime.InteropServices;
1010

11-
public class Test
11+
public class Test_Weak
1212
{
1313
public class Dummy
1414
{

src/tests/GC/API/WeakReference/Finalize.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Runtime.CompilerServices;
99
using System.Runtime.InteropServices;
1010

11-
public class Test {
11+
public class Test_Finalize {
1212

1313
public class Dummy
1414
{

src/tests/GC/API/WeakReference/IsAlive.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Runtime.InteropServices;
99
using System.Runtime.CompilerServices;
1010

11-
public class Test {
11+
public class Test_IsAlive {
1212
public static int[] array;
1313

1414
[MethodImplAttribute(MethodImplOptions.NoInlining)]

src/tests/GC/API/WeakReference/IsAlive_neg.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Runtime.InteropServices;
99
using System.Runtime.CompilerServices;
1010

11-
public class Test {
11+
public class Test_IsAlive_neg {
1212
public static int[] array;
1313

1414
[MethodImplAttribute(MethodImplOptions.NoInlining)]

0 commit comments

Comments
 (0)