Skip to content

Commit b68328a

Browse files
authored
Add [Fact] attributes on TypeGeneratorTests (#61534)
For now there's no functional change to the behavior of the tests, I have just copied the bits to inject from Jeremy's example in his pending PR. Thanks Tomas
1 parent a3b186b commit b68328a

File tree

1,501 files changed

+15010
-0
lines changed

Some content is hidden

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

1,501 files changed

+15010
-0
lines changed

src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest0/Generated0.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
//TEST ASSEMBLY:
1010
.assembly Generated0 { .hash algorithm 0x00008004 }
11+
.assembly extern xunit.core
12+
{
13+
.publickeytoken = (
14+
8d 05 b1 bb 7a 6f db 6c
15+
)
16+
.ver 2:4:2:0
17+
}
1118

1219
.class public BaseClass0
1320
{
@@ -213,6 +220,9 @@
213220
}
214221
.method public hidebysig static int32 Main() cil managed
215222
{
223+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
224+
01 00 00 00
225+
)
216226
.entrypoint
217227
.maxstack 10
218228
call void Generated0::MethodCallingTest()

src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1/Generated1.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
//TEST ASSEMBLY:
1010
.assembly Generated1 { .hash algorithm 0x00008004 }
11+
.assembly extern xunit.core
12+
{
13+
.publickeytoken = (
14+
8d 05 b1 bb 7a 6f db 6c
15+
)
16+
.ver 2:4:2:0
17+
}
1118

1219
.class public BaseClass0
1320
{
@@ -702,6 +709,9 @@
702709
}
703710
.method public hidebysig static int32 Main() cil managed
704711
{
712+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
713+
01 00 00 00
714+
)
705715
.entrypoint
706716
.maxstack 10
707717
call void Generated1::MethodCallingTest()

src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest10/Generated10.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
//TEST ASSEMBLY:
1010
.assembly Generated10 { .hash algorithm 0x00008004 }
11+
.assembly extern xunit.core
12+
{
13+
.publickeytoken = (
14+
8d 05 b1 bb 7a 6f db 6c
15+
)
16+
.ver 2:4:2:0
17+
}
1118

1219
.class public BaseClass0
1320
{
@@ -587,6 +594,9 @@
587594
}
588595
.method public hidebysig static int32 Main() cil managed
589596
{
597+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
598+
01 00 00 00
599+
)
590600
.entrypoint
591601
.maxstack 10
592602
call void Generated10::MethodCallingTest()

src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest100/Generated100.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
//TEST ASSEMBLY:
1010
.assembly Generated100 { .hash algorithm 0x00008004 }
11+
.assembly extern xunit.core
12+
{
13+
.publickeytoken = (
14+
8d 05 b1 bb 7a 6f db 6c
15+
)
16+
.ver 2:4:2:0
17+
}
1118

1219
.class public BaseClass0
1320
{
@@ -694,6 +701,9 @@
694701
}
695702
.method public hidebysig static int32 Main() cil managed
696703
{
704+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
705+
01 00 00 00
706+
)
697707
.entrypoint
698708
.maxstack 10
699709
call void Generated100::MethodCallingTest()

src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1000/Generated1000.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
//TEST ASSEMBLY:
1010
.assembly Generated1000 { .hash algorithm 0x00008004 }
11+
.assembly extern xunit.core
12+
{
13+
.publickeytoken = (
14+
8d 05 b1 bb 7a 6f db 6c
15+
)
16+
.ver 2:4:2:0
17+
}
1118

1219
.class public BaseClass0
1320
{
@@ -4372,6 +4379,9 @@
43724379
}
43734380
.method public hidebysig static int32 Main() cil managed
43744381
{
4382+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
4383+
01 00 00 00
4384+
)
43754385
.entrypoint
43764386
.maxstack 10
43774387
call void Generated1000::MethodCallingTest()

src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1001/Generated1001.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
//TEST ASSEMBLY:
1010
.assembly Generated1001 { .hash algorithm 0x00008004 }
11+
.assembly extern xunit.core
12+
{
13+
.publickeytoken = (
14+
8d 05 b1 bb 7a 6f db 6c
15+
)
16+
.ver 2:4:2:0
17+
}
1118

1219
.class public BaseClass0
1320
{
@@ -4281,6 +4288,9 @@
42814288
}
42824289
.method public hidebysig static int32 Main() cil managed
42834290
{
4291+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
4292+
01 00 00 00
4293+
)
42844294
.entrypoint
42854295
.maxstack 10
42864296
call void Generated1001::MethodCallingTest()

src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1002/Generated1002.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
//TEST ASSEMBLY:
1010
.assembly Generated1002 { .hash algorithm 0x00008004 }
11+
.assembly extern xunit.core
12+
{
13+
.publickeytoken = (
14+
8d 05 b1 bb 7a 6f db 6c
15+
)
16+
.ver 2:4:2:0
17+
}
1118

1219
.class public BaseClass0
1320
{
@@ -4340,6 +4347,9 @@
43404347
}
43414348
.method public hidebysig static int32 Main() cil managed
43424349
{
4350+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
4351+
01 00 00 00
4352+
)
43434353
.entrypoint
43444354
.maxstack 10
43454355
call void Generated1002::MethodCallingTest()

src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1003/Generated1003.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
//TEST ASSEMBLY:
1010
.assembly Generated1003 { .hash algorithm 0x00008004 }
11+
.assembly extern xunit.core
12+
{
13+
.publickeytoken = (
14+
8d 05 b1 bb 7a 6f db 6c
15+
)
16+
.ver 2:4:2:0
17+
}
1118

1219
.class public BaseClass0
1320
{
@@ -4704,6 +4711,9 @@
47044711
}
47054712
.method public hidebysig static int32 Main() cil managed
47064713
{
4714+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
4715+
01 00 00 00
4716+
)
47074717
.entrypoint
47084718
.maxstack 10
47094719
call void Generated1003::MethodCallingTest()

src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1004/Generated1004.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
//TEST ASSEMBLY:
1010
.assembly Generated1004 { .hash algorithm 0x00008004 }
11+
.assembly extern xunit.core
12+
{
13+
.publickeytoken = (
14+
8d 05 b1 bb 7a 6f db 6c
15+
)
16+
.ver 2:4:2:0
17+
}
1118

1219
.class public BaseClass0
1320
{
@@ -4736,6 +4743,9 @@
47364743
}
47374744
.method public hidebysig static int32 Main() cil managed
47384745
{
4746+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
4747+
01 00 00 00
4748+
)
47394749
.entrypoint
47404750
.maxstack 10
47414751
call void Generated1004::MethodCallingTest()

src/tests/Loader/classloader/TypeGeneratorTests/TypeGeneratorTest1005/Generated1005.il

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88

99
//TEST ASSEMBLY:
1010
.assembly Generated1005 { .hash algorithm 0x00008004 }
11+
.assembly extern xunit.core
12+
{
13+
.publickeytoken = (
14+
8d 05 b1 bb 7a 6f db 6c
15+
)
16+
.ver 2:4:2:0
17+
}
1118

1219
.class public BaseClass0
1320
{
@@ -4849,6 +4856,9 @@
48494856
}
48504857
.method public hidebysig static int32 Main() cil managed
48514858
{
4859+
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
4860+
01 00 00 00
4861+
)
48524862
.entrypoint
48534863
.maxstack 10
48544864
call void Generated1005::MethodCallingTest()

0 commit comments

Comments
 (0)