Remaining usability issues are listed in https://github.com/dotnet/runtime/issues/71732
Conversion steps:
- static-none uses args - add comment to RequiresProcessIsolation
- remove unused arg in Runtime_80731.il
- Rewrite 4 IL tests to use newarr instead of args
- [cs-main] remove unused args in C# tests
- Update 9 tests with Main(args)
- Workaround: add RequiresProcessIsolation to LdfldaHack
- Move [Fact] to correct location in b12263
- In b06020, wrap $ class so that the C# wrapper can call it
- [ILTransform -public]
- [ILTransform -sr]
- Manually rename b598031/test and test2.
These were missed by the previous ILTransform -n run.
They no longer clash because run renamed all of their conflicts,
but this renames them for consistency.
- [ILTransform -prociso] Rerun for new tests
- Wrappers
- [ILTransform -ilfact]
- Manually do missed -collapse-main-sig and fix placement of [Fact]
- Fix b89946 that referred to Main
- Fix Runtime_59444 reflection on Test*
* Fix TestSummary.cs to handle invalid XML characters
* [ILTransform -a]
* Manual fixes
* Update test groupings and add extern aliases
* Finish merge - incorporate changes to csproj/Dir.B.props - fix xunit.analyzers errors
* [ILTransform -public]
* [ILTransform -prociso]
* [ILTransform -ilfact] (undo GitHub_26491)
* Fix xUnit1003 in Runtime_83003
* Update new test Runtime_83941 for merged groups
* 59444 - Changing methods to internal broke reflection calls. Use this
opportunity to remove the reflection and simply mark the callees as [Fact]s.
- 64883/76273 - Suppress the xunit warning so that the code can continue
using the normal (public-only) reflection search.
- Fix TestSummary.cs to handle invalid XML characters
- Add RequiresProcessIsolation for existing issues.target entry (AOT compiler fails)
- undo JIT/opt/And/Regressions/Regression1.csproj (possibly from manual merge from main)
using System.IO;
using System.Collections.Generic;
using System.Text;
+using System.Xml;
namespace XUnitWrapperLibrary;
public class TestSummary
+ $@" method=""{MethodName}"" time=""{Duration.TotalSeconds:F6}""");
string outputElement = !string.IsNullOrWhiteSpace(Output)
- ? $"<output><![CDATA[{Output}]]></output>"
+ ? $"<output><![CDATA[{XmlConvert.EncodeName(Output)}]]></output>"
: string.Empty;
if (Exception is not null)
//
using System;
+using Xunit;
public class Bug
{
- public void Func(ref String str)
+ internal void Func(ref String str)
{
Console.WriteLine(str.ToString());
str = "Abc";
}
- public void run()
+ internal void run()
{
String[] str = new String[10];
str[0] = "DEF";
Func(ref str[0]);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
(new Bug()).run();
Console.WriteLine("Passed");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Diagnostics;
+using Xunit;
namespace SetIPTest
{
public class SetIP
}
- public static void F()
+ internal static void F()
{
String s;
double d;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine("Entering Main of SetIP");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
<NoStandardLib>True</NoStandardLib>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0x38e94b27 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
return new BB();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new BB().Method1(0.0f);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
static bool Static1(float[] param1) { return false; }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace JitTest
{
using System;
public class Test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ulong a = 0x0000000000000020;
ulong b = 0xa697fcbfd6d232d1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ulong a = 0x00000000005d909c;
ulong b = 0x00004021bfa15862;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
namespace DefaultNamespace
{
internal static readonly String[,] strArr = {{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."},
{"This", " ", "a", " ", "test", " ", "of", " ", "patience", "."}};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new Bug();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly b07847
{
.field public static int32 TLSFieldData at FieldData
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
ldsfld int32 test::TLSFieldData
ldc.i4 51966
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on tls support see #2441 -->
<DisableProjectBuild>true</DisableProjectBuild>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ExceptionTest {
.method public static int32 main(){
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
L1:
newobj instance void [mscorlib]System.Exception::.ctor() throw
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 main() il managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 10
.locals (int32,int32,int32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 main()
{ .entrypoint
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.locals (value class Rational Half, value class Rational Third,
value class Rational Temporary,
class [mscorlib]System.Object H, class [mscorlib]System.Object T)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 main()
{ .entrypoint
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.locals (value class Rational Half)
ldloca.s Half
call instance void Rational::.ctor()
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 main()
{ .entrypoint
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.maxstack 1
ldc.i4.5
call void EvenOdd::Test(int32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
call int32 bug::jumper()
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b10939 extends [mscorlib] System.Object {
.method public static int32 main() {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
ldnull
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly b10940a { }
.class public auto ansi Test_b10940a extends [mscorlib] System.Object {
.method public static int32 foo() {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.locals(int32,refany)
ldc.i4 0 //initialize local 0 (not used in all tests)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly b10940b { }
.class public auto ansi Test_b10940b extends [mscorlib] System.Object {
.method public static int32 foo() {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.locals init (int32,refany)
ldc.i4 0 //initialize local 0 (not used in all tests)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly b11021 { }
.class public auto ansi Test_b11021 extends [mscorlib] System.Object {
.method public static int32 foo() {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.maxstack 20
.locals(float32)
.entrypoint
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_382872040 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
.locals ( float32, int32, int32, float32, int32, int32, int32, int32, int32, float32, float32, float32, int32, int64, int64, int32, int64, float64)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
public class TestClass
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
ret
} // end of method 'X::.ctor'
-} // end of class 'X'
-//Global methods
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.method public static int32 main() il managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.maxstack 1
.locals (class A.X px)
.entrypoint
ret
.try try_begin to filter_begin filter filter_begin handler except_begin to try_end
-} // end of global method 'main'
+} // end of method 'main'
+} // end of class 'X'
}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public class foo
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int ian = -2147483648;
System.Console.Write((long)0x80000000);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldc.i8 0x8000000000000000
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class foo
{
static double nan = 0.0 / 0.0;
static double d = 1.1;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
#pragma warning disable 1718
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
{
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 8
.locals ( float32, int64)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
return x;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 0;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace DefaultNamespace
{
using System;
public class NStructTun
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Mainy();
GC.Collect();
return 100;
}
- public static void Mainy()
+ internal static void Mainy()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public I {
.method public static int32 main() {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 3
ldc.i8 1
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public I2 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 11
.try {
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class Foo
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
const int a = 0x7fffffff; // highest positive int
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public ILGEN_6 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public ILGEN_4 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
.try
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace DefaultNamespace
{
public class Prob
{
- public static int Main(System.String[] Args)
+ [Fact]
+ public static int TestEntryPoint()
{
System.Console.WriteLine(System.Math.Exp(System.Double.PositiveInfinity));
System.Console.WriteLine(System.Math.Exp(System.Double.NegativeInfinity));
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int64 field_0x5
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_622380794 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float32 field_0xa
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
.try {
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int64 field_0x1
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
-internal class Test
+public class Test
{
- static public int Main(string[] args)
+ [Fact]
+ static public int TestEntryPoint()
{
bool b1 = Double.IsPositiveInfinity(Math.Exp(Double.PositiveInfinity));
bool b2 = 0 == Math.Exp(Double.NegativeInfinity);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int64 field_0x1
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_622380794 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x3
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int32 field_0x0
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x3
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int32 field_0x0
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int64 field_0x5
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x7
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int32 field_0x4
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x3
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float32 field_0xe
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_3109600104 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 11
.locals ( float32, int32, int64, int32, int32, int32, int32, float64, int64, int32, float64, int32, float64, int64, int32, int64, int64, int32, int32, int32, int32, int64, float32, int32, int32, int64, float64, int32, int32, int32, float64, int32, float32, float32, int32, float32, float32, int32, float64, int32, int32, int32, int32, float32, float32, int32, float64, int64, float32, int32, float64, float32, int32, int32, int32, float64, float64, float32, int32, float64, int32, int32, int32, int32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Reflection;
using System.Collections;
using System.Globalization;
+using Xunit;
public class Bug
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Decimal[] dcmlSecValues = new Decimal[2] { 2, 3 };
Int32 aa = 1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
//BEGIN STATIC FIELDS
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 12
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_622380794 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 12
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Entry point - Main -
//-------------------------
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public _ldtoken {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.locals ()
.maxstack 2
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x3
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 12
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int32 field_0x0
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 12
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
+using Xunit;
public class BasicMath
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int ec = 0;
int x = 10;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_4017387519 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 11
.locals ( int32, float64, int32, int32, float32, int32, int32, float64, float64, int32, int64, int32, int64, int32, int64, float64, int32, int32, int64, int32, int64, float64, float64, int32, float32, float64, int32, float64, int32, float64, int64, int32, float64, int32, int32, int32, int64, int64, float64, int64, int64, int32, int64, int32, int64, int64, float32, int64, int32, int64, int32, float64, float32, float32, int64, int64, int64, int32, float64, float64, int32, int32, float32, int32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//-----------------------------------------------------
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public callstatic {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace defaultNamespace
{
using System;
public class jitbug
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if ("15.0%Double.PositiveInfinity = " + 15.0 % Double.PositiveInfinity == "15.0%Double.PositiveInfinity = 15")
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int64 field_0x3
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 12
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int8 field_0x24
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 22
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
return 49548;
/* 6 operator(s) emitted */
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new BB().Method1(false);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int16 field_0x3
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
public class DD
{
public static int zero = 0;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
{
static BB m_static2 = new BB();
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class ReproBoxProblem
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine(DoOp(77.5, 77.5));
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class AA
{
GC.Collect();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
DoThings();
new AA().CheckHeap();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0x38e3ae39 {
.field static unsigned int16 field_0x1
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int16 field_0x1
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x9
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 18
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int8 field_0x12
.field static int8 field_0x26
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 14
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b16503' {}
.class public ILGEN_622380794 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 18
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int8 field_0x6
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 22
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x9
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 14
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x9
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 14
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int8 field_0x22
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 18
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int64 field_0x7
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 18
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float32 field_0x8
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 14
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int32 field_0x2
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 18
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x9
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 18
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0x38e9694e {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 18
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int32 field_0x2
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 14
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int8 field_0x0
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 6
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x9
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 18
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Bug
{
using System;
return new double[5];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
m_static3[0] = new DD();
m_static3[0].m_field1 = m_static3[0].Method2();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
public class DD
{
return new float[7];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new DD().Method1();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//<Expects Status=success> </Expects>
using System;
+using Xunit;
interface Inter1
{
public class Test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Inter1 i1 = new Struct1();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// <Code>
using System;
+using Xunit;
public class MyClass
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float test1 = 2.0f;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float32 field_0x8
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 16
.locals (int32 ecode)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64[] field_0x13
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 16
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly 'b25463' {}
.class public ILGEN_0x7122ba20 {
.field static unsigned int64 field_0x3
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0x145288f8 {
.method public static int32 main() {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 14
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int32 field_0x2
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 12
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float32[] field_0x12
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 14
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int32 field_0x2
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 16
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool[] loc1 = new bool[7];
loc1[2] = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64[] field_0x13
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 12
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float32 field_0x8
.field static unsigned int64[] field_0xd
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 14
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x9
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 22
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0xf07bd440 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int32 field_0x6
.field static unsigned int8[] field_0xa
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 12
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b25835' {}
.class public ILGEN_0xb1b96d2b {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
+using Xunit;
public class Co1245GetBytes_double
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool bResult = false; // Assume FAiL
StringBuilder sblMsg = new StringBuilder(99);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64[] field_0x13
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 22
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int32[] field_0xc
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0xf7ec06dc {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0x38fd50b5 {
.field static unsigned int16 field_0x1
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 12
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0xeed686f5 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 25
.try {
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
uint[] local5 = new uint[7];
int local6 = 18;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
public class BB
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = 10;
bool f = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
return null;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int L = 2;
int[] F = new int[2];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int64 field_0x3
.field static float32[] field_0x12
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 18
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
/*
JE1 JR1 C(null) I1 S(null) G0
..\regalloc.cpp, Line 8037 : Assertion failed 'passes <= 4' in 'DefaultNamespace.Obj.Static3():ref'
return new float[4];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float32 field_0x8
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 14
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 1
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public stelem_test {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 17
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public locali4 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 17
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0xd4f4498 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 19
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b27657' {}
.class public ILGEN_0x884e5960 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 15
.locals (int32 ecode)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int32 field_0x1
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 19
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
return ptr.m_afField1[2];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int N1 = 0;
FailingFunc(ref N1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
return new bool[7];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Method1();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
static AA[] m_axForward3;
static void GoToEnd() { throw new Exception(); }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool param1 = false;
bool[] local2 = new bool[7];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b27880' {}
.class public ILGEN_0x55738f50 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 11
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int8 field_0x0
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 9
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0x84875418 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 19
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
/*
COMPILE THIS WITH OPTIMIZATION TURNED OFF:
coolc /o- bug.cs
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public class A
{
int n;
for (aa = new A[7]; true; n = B[2] + B[2]) ;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int64 field_0x3
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 17
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_3171381355 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 11
.locals ( int32, int64, float64, int32, int64, float64, int32, int64, float32, float32, int32, int32, float64, int64, float32, float64, float32, float64, float32, float64, int64, int64, int64, float32, int64, float64, int32, float64, int32, int64, float64, float32, int32, int32, int32, float64, int64, int32, int32, float32, int32, int32, int64, int32, int32, int64, int32, int64, float64, int32, int32, int32, int32, int64, float32, float32, int32, float32, int64, int32, int32, int32, int32, int64)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int8 field_0x6
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 17
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float32 field_0x1
.field static unsigned int32 field_0x6
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 17
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float32 field_0x3
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 11
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int32 field_0x6
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 19
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public bool[] m_abField2 = (new bool[7]);
public float[] m_afField3 = (new float[7]);
- public static void Method1()
+ internal static void Method1()
{
object local1 = 0.0;
AA[] local2 = new AA[7];
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
return 1;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double[] arg = null;
Static4(ref arg);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0x1877c3d8 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 17
.try {
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0x2e194c20 {
.field static int32 field_0x3
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 7
.try {
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.method public static int32 main() il managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 3
.locals init (class [mscorlib]System.Text.StringBuilder V_0,
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
// Entry point - Main -
//-------------------------
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 main()
{
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.locals ()
.maxstack 2
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace Test
{
using System;
GC.Collect();
return new float[7];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
using System;
+using Xunit;
namespace Tests
System.Console.WriteLine(".cctor");
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
System.Console.WriteLine("----------------");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
public int[] m_anField1 = new int[7];
- public static void Method1()
+ internal static void Method1()
{
AA[] local2 = new AA[7];
while (true)
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
public int[] m_anField1 = new int[7];
- public static void Method1()
+ internal static void Method1()
{
AA[] local2 = new AA[7];
while (true)
local2[2].m_anField1 = new AA().m_anField1; //this will blow up
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool param3 = false;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int64[] field_0x2
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 19
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0xa7db44c0 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 19
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// MVID: {5E222DAB-74B5-4FA9-A101-AE45EE636213}
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b30838 extends [mscorlib] System.Object {
.method public static int32 main() il managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
// Code size 19 (0x13)
.maxstack 8
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float32[] field_0x6
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 17
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly 'b30905' {}
.class public ILGEN_0xe696696 {
.field static int32 field_0x0
.field static float64 field_0x5
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 17
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public class foo
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
long lo = 0x01;
lo = lo << 63;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
return 0.0f;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Method1(new bool[3]);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
public static int[] m_anStatic4 = new int[7];
- public static void Static1(object[] param1, ref bool param2)
+ internal static void Static1(object[] param1, ref bool param2)
{
float local8 = 0.0f;
AA[] local9 = new AA[7];
} while ((uint)param1[2] < 0);
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool b = false;
Static1(null, ref b);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
uint u = (uint)(param3.Method3(param3.Method3(d)[0])[0]);
return new uint[4];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
BB a = new BB();
Method2(Method2(0u, a)[2], a);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
public double m_dField2 = 47.26;
public static float m_fForward1;
- public static void Method2(object param2, ref double param4)
+ internal static void Method2(object param2, ref double param4)
{
while (param4 != 0.0d)
{
} while ((object)m_fForward1 != param2);
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool[] cond = new bool[40];
while (cond[0])
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class Temp
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int x = 10;
switch (x)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
public static uint m_uStatic3 = 205u;
- public static void Static1()
+ internal static void Static1()
{
try
{
}
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows, uses native varargs -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b32551a extends [mscorlib] System.Object {
.method public static int32 main() il managed {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 8
.try {
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b32551b extends [mscorlib] System.Object {
.method public static int32 main() il managed {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 8
.try {
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
} while (param1[2]);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public class bug
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Decimal cur1 = new Decimal(UInt32.MaxValue);
Console.WriteLine("The decimal value is: " + cur1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly extern mscorlib { }
.assembly 'b32879' { }
.class public auto ansi HiDad extends [mscorlib]System.Object
.field static assembly class [mscorlib]System.Collections.Dictionary _vbEventCollection
.method public static int32 _main() il managed forwardref
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 8
IL_0000: call void HiDad::main()
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
/**
* A simple Com+ application.
*/
* @param args Array of parameters passed to the application
* via the command line.
*/
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = 10;
int j = i - 5; // j = 5
return c;
}
- public static void x()
+ internal static void x()
{
int foo;
return (true);
}
- public static void w()
+ internal static void w()
{
int a = 1;
int b = 2;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
public class Ternary3b
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Ternary3b hmm = new Ternary3b();
hmm.Problem();
internal int m_rr = -1;
internal int m_cc = 2;
- public virtual void Problem()
+ internal virtual void Problem()
{
int uu = 20;
int oo = 12;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.InteropServices;
+using Xunit;
namespace DefaultNamespace
{
public class RootMem
internal static GCHandle[] root;
internal static int n;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int iSize = 1000;
root = new GCHandle[iSize];
<PropertyGroup>
<!-- Needed for UnloadabilityIncompatible -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
public class Bug
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
//Console.WriteLine (DateTime.GetNow().ToString());
Console.WriteLine(DateTime.Now.ToString());
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
using System;
+using Xunit;
namespace DefaultNamespace
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = 0;
X x = new X();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class test
{
static byte by = 13;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte by1 = (byte)(by >> 1);
byte by2 = (byte)(by >> 1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class test
{
static byte by = 13;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte by1 = (byte)(-by);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
+using Xunit;
namespace DefaultNamespace
{
public class MainClass
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Decimal c1 = new Decimal();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
public class Bug
{
- public virtual void runTest()
+ internal virtual void runTest()
{
Decimal dcml1;
dcml1 = (new Decimal(6) - new Decimal(2)) / new Decimal(4);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Bug b = new Bug();
b.runTest();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
public class Finalize
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Class1 Cls = new Class1();
Cls.Method();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
+using Xunit;
namespace DefaultNamespace
{
public class AppStarter
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int[] foo = new int[1];
long j = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
internal static V2[] V2Array = new V2[Length];
// static V3[] V3Array = new V3[Length];
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
for (int i = 0; i < Length; i++)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
public class Bug
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte x = 0xFF; // ANDREIS: Added cast operator due compiler error SC0031
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
/**
* A simple Com+ application.
*/
* @param args Array of parameters passed to the application
* via the command line.
*/
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = 10;
int j = i - 5; // j = 5
return c;
}
- public static void x()
+ internal static void x()
{
int foo;
return (true);
}
- public static void w()
+ internal static void w()
{
int a = 1;
int b = 2;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
public class DateTimeCompare
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Object v1 = new DateTime(1952, 2, 19);
Object v2 = new DateTime(1968, 12, 8);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
public class Bug4
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Decimal cy1;
Decimal cy2;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
+using Xunit;
namespace DefaultNamespace
return true;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine("Character.IsWhitespace() -- Bug_Cb4270 runTest started.");
(new Bug_Cb4270()).runTest();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
return true;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
MultiDim_ArgCheck_Fail();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
// The legendary 37-byte value class.
namespace DefaultNamespace
{
public class jitBug
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
V3[] V3Array = new V3[5];
for (int i = 0; i < V3Array.Length; i++)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
public class repro
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
char b = 'B';
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
public class Bug
{
- public void runTest(Object var2)
+ internal void runTest(Object var2)
{
int iTemp = 5;
Object VarResult = (iTemp);
else
Console.WriteLine("Test FAiLED");
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Bug oCbTest = new Bug();
oCbTest.runTest((3));
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Globalization;
+using Xunit;
namespace DefaultNamespace
{
public class cinfo
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.Out.WriteLine("Char Class tests");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
public class bug
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int size = 32;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Globalization;
+using Xunit;
namespace DefaultNamespace
{
public class bug
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
CultureInfo ci = new CultureInfo("en-us");
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
public class unsignedNegative
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Int16 testUI = (-1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
public class Bug
{
- public virtual void runTest()
+ internal virtual void runTest()
{
int iVal1 = 2;
int iVal2 = 3;
Console.WriteLine(Math.Min(iVal1, iVal2));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Bug oCbTest = new Bug();
oCbTest.runTest();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
return UInt16.MaxValue;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Object v = ((UInt16)65535);
Console.WriteLine("v.ToUInt16: " + v);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
return (UInt16)i;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// Looks like what's happening is the JIT sees I'm casting an int
// to an unsigned short then back to an int and it messes up by
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Compute distance light travels using long variables.
using System;
+using Xunit;
public class Light
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int lightspeed;
long days;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
(new TestClass()).TestMain();
Console.WriteLine("Passed.");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly b16054
{
}
.method public static int32 main() {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 20
ldc.r8 float64(0xFFF0000000000000)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
+using Xunit;
namespace N
{
- internal class X
+ public class X
{
- public static void Main()
+ [Fact]
+ public static void TestEntryPoint()
{
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
_ => DefaultSeed
};
- public virtual void runTest()
+ internal virtual void runTest()
{
Random rand = new Random(Seed);
Object o = ((UInt64)rand.Next((int)UInt64.MinValue, Int32.MaxValue));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new Bug().runTest();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 main()
{ .entrypoint
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.maxstack 1
ldc.i4.5
call void EvenOdd::Test(int32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
- class JITcrash
+ public class JITcrash
{
- public
- static
- int Main(String[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
UInt32 x = (0xFFFFFFFF);
Int64 y = x;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 main() il managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.locals(class test)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.InteropServices;
+using Xunit;
[StructLayout(LayoutKind.Sequential)]
class RECT
public class MainClass
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
CSwarm swarm = new CSwarm();
return (100);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace DefaultNamespace
{
using System;
+ using System.Runtime.CompilerServices;
+ using Xunit;
- internal class cb6054ToByte_all
+ public class cb6054ToByte_all
{
#pragma warning disable 0414
public static readonly String s_strActiveBugNums = "None.";
,"Method_Covered: Convert.ToByte( Object )" //System/Object
,"Method_Covered: Convert.ToByte( String, Int32 )" //System/String, int
};
- public static void printoutCoveredMethods()
+ internal static void printoutCoveredMethods()
{
Console.Error.WriteLine("");
Console.Error.WriteLine("Method_Count==12 (" + s_strMethodsCovered.Length + "==confirm) !!");
}
}
- public static int Main(String[] args)
+ public static int Main(String[] args) => Run(args.Length > 0 && args[0].Equals("-v"));
+
+ [Fact]
+ public static int TestEntryPoint() => Run(false);
+
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ static int Run(bool verbose)
{
bool bResult = false; // Assume FAiL
cb6054ToByte_all cbX = new cb6054ToByte_all();
- try { if (args[0].Equals("-v")) cbX.verbose = true; } catch (Exception) { }
+ if (verbose) cbX.verbose = true;
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
{
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 5
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
ldc.i4 43
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple
{
.method public static int32 main() {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Globalization;
using System;
+using Xunit;
namespace DefaultNamespace
{
public class Bug
{
- public virtual void runTest()
+ internal virtual void runTest()
{
CultureInfo en = new CultureInfo("en-US");
Double d = Convert.ToDouble("1.0E19", en.NumberFormat);
Console.WriteLine("Test FAiLED");
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new Bug().runTest();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
call int32 bug::jumper()
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class TestClass
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int RetInt = 1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Test_b06464
{
return 1;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
A()[F()] = G();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
//(Sep 30 1999)14:45:45
// spew2 /L /d15
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 16
.locals ( int32, int64, float32, float64, int32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
{
private static int n = 0;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
n = 1;
Console.WriteLine("n = " + n);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_939524508 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 7
.locals ( float32, int32, int32, int32, float32, int32,
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public ILGEN_939661025 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 7
.locals (float32, int64, float32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Collections;
+using Xunit;
public class test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ArrayList objList = new ArrayList();
objList.Add("hey");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace Def
{
using System;
public class jitassert2
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = -1;
Object[] array = new Object[3];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
using System;
public class test
{
- public static void ccc(byte[] bytes)
+ internal static void ccc(byte[] bytes)
{
int[] m_array;
int m_length;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte[] ub = new byte[0];
ccc(ub);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace AAAA
{
//@BEGINRENAME; Verify this renames
public class CtTest
{
private static int iTest = 5;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
iTest++;
Console.WriteLine("iTest is " + iTest);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public ILGEN_939796994 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 2
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_940455031 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 11
.locals init ( int32, float64, int64)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public ILGEN_940507601 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 6
.locals ( int64, float64, int32, int64, float64, float32, int32, int32, float64, int32, float64, int32, int32, float32, float32, float32, int64, float32, int32, int32, int32, int32, int32, int64, float32, float64, float64, float64, float64, int32, int64, int64, float32, float64, int64, int32, float64, int64, int32, int64, int32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class Test_b07483
{
private int _t = 0;
private int _f = 0;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test_b07483 test = new Test_b07483();
return (test.Run());
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public ILGEN_940708979 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 6
.locals ( int64, int32, int32, int32, float64, int32, float32, float64, float64, int32, int32, float32, int32, float32, int32, int32, int32, float32, int32, float64, float32, float32, float32, int32, int32, float32, int32, int32, int64, float64, float64, int64, int32, float32, float64, int32, int32, float32, int32, float64, int32, float32, int32, float32, int32, int64, int64, int32, int32, int32, int64, int32, int32, int32, int64, float64, float32, int32, int32, int32, int32, int32, int32, float64)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_941132142 {
// spew2 /L16 /d10
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 11
.locals ( float64, int32, float64, float32, int32, float64, int32, int64, int64, int64, int32, int32, int32, float32, int32, int64)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Factorial
using System;
+using System.Runtime.CompilerServices;
+using Xunit;
public class Test
{
return (100);
}
+ [Fact]
+ public static void TestEntryPoint() {
+ Test app = new Test();
+ app.Run(new string[0]);
+ }
+
+ [MethodImpl(MethodImplOptions.NoInlining)]
public int Run(string[] args)
{
long i;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly b08672
{
}
+.assembly extern xunit.core {}
.assembly extern mscorlib{}
.class public stelem_i {
// Entry point - Main -
//-------------------------
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
.locals init (int32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public ILGEN_941279580 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 11
.locals ( int64)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
//extern("msvcrt.dll:printf") int printf(const char *fmt, ...);
//unsigned int _exception_code();
}
*/
- public static void bomb()
+ internal static void bomb()
{
char[] p = null;
p[0] = (char)0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
UInt32 ec;
ec = (UInt32)0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace X
{
//@BEGINRENAME; Verify this renames
}
*/
- public static void bomb()
+ internal static void bomb()
{
char[] p = null;
p[0] = (char)0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
UInt32 ec, ec1;
<PropertyGroup>
<!-- Needed for GCStressIncompatible -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<!-- This test is disabled until #12224 is fixed -->
<GCStressIncompatible>true</GCStressIncompatible>
</PropertyGroup>
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using System;
+using Xunit;
public class MyClass
{
//extern modifier
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool b = true;
int exitcode = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b09254 extends [mscorlib] System.Object {
.method public static int32 main() {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.locals (int32)
.maxstack 20
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Default
{
//@BEGINRENAME; Verify this renames
//
public class X
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine("Entering Hello world");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
//@BEGINRENAME; Verify this renames
public class X
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Object[,] obj = new Object[1, 1];
// IL_0000: ldc.i4.1
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace D
{
//@BEGINRENAME; Verify this renames
return (char)(x >> 8);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
f(123);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Default
{
//@BEGINRENAME; Verify this renames
//@ENDRENAME; Verify this renames
using System;
- class q
+ public class q
{
static
int func(int i, int updateAddr, byte[] newBytes, int[] m_fixupPos)
return i;
}
- public
- static
- int Main(String[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
func(0, 0, null, null);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static int16[] field_0x6
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 17
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
return 0.0f;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace DefaultNamespace
{
return x;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 0;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// <Code>
using System;
+using Xunit;
public class MyClass
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
long test1 = long.MinValue;
long test2 = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
return ((object)(m_axField4[2].m_dField3));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
static bool Static1(ref int[] param1) { return false; }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
AA local5 = new AA();
while (AA.Static1(ref local5.m_anField3)) ;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
public static object[] m_axStatic2 = null;
- public static void Static3()
+ internal static void Static3()
{
bool flag1 = false, flag2 = false, flag3 = false;
double local4 = 0.19;
throw new Exception();
} while (flag3);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
return null;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return (int)BB.Method1(__arglist()) + 100;
}
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
Method1(__arglist(Method1(__arglist())));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
uint u = 0;
bool[] ab = null;
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
static float[] m_af = new float[2];
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
while (m_af[0] < m_af[1])
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
while (AA.m_bStatic1) ;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
CC local5 = new CC();
do
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
static void AA_Static1(ref uint param2, ref uint param4) { }
static JJ CC_Static1() { return new JJ(); }
- public static void FF_Static1(ref uint param3)
+ internal static void FF_Static1(ref uint param3)
{
CC_Static1();
AA_Static1(
ref s_au[0],
ref s_au)[0]);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
bool[] m_ab = null;
static App[] m_ax = new App[7];
- public static void Method1() { }
+ internal static void Method1() { }
public bool[] Method1(ref int param1, App param4)
{
Method1();
Method2();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
static uint[] m_au = new uint[10];
static void Method1(uint param1) { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int a = 98;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class BB
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double local3 = 133.28;
AA.Static1(local3, AA.m_auForward3[2]);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
ulong Method1(AA p1, uint[] p2, ref float p4, ref float[] p5, long p6) { return 0; }
long Method4(long p1) { return 0; }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
while (a == 1)
throw new Exception();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
{
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
param4[param4[param5].Method1()].Method1();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
catch (Exception) { }
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
int Method4(uint param1, double param2, long param3)
{ return new BB().Method1(); }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Nullstone
{
public class Test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test t = new Test();
t.Init();
static int[] zero = new int[50];
static short[] a = new short[50];
- public void kernel()
+ internal void kernel()
{
short reg;
}
- public void Init()
+ internal void Init()
{
a[0] = 1;
return;
}
- public void Finish()
+ internal void Finish()
{
System.Console.WriteLine(a[0]);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b41262'{}
.class public switch1 {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
/*
---------------------------
Assert Failure (PID 848, Thread 1036/40c)
while ((bool)m_axStatic2) { }
}
- public static int Main() { try { Static2(null); } catch (NullReferenceException) { } return 100; }
+ [Fact]
+ public static int TestEntryPoint() { try { Static2(null); } catch (NullReferenceException) { } return 100; }
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
static void Method1(float param2) { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ulong local3 = 168u;
try { Method1((float)local3 + App.m_afForward5[0]); }
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
Method1(af[(int)m_uStatic + (iLocal - m_iStatic)]);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try { Static1(); }
catch (Exception) { }
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try { Method1(); }
catch (Exception) { }
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
new ulong[4],
new AA().Method1(param1, new long[4], new ulong[4], new BB().m_uField2));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class BB
{
public static ulong m_ulStatic1 = 237u;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try { }
finally
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
+using Xunit;
namespace Test
}
catch (NullReferenceException) { }
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
<NoStandardLib>True</NoStandardLib>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int[] an = new int[2];
Static2(ref an);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 10
// ldstr "My string"
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
} while (AA.Static1(null, new bool[7]));
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
static void Static1(ulong param2, object param3) { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ulong[] arr = new ulong[16];
uint u = 11u;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace Test
{
using System;
}
catch (OtherException) { }
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
catch (NullReferenceException) { }
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
new BB().Method3(Static1(ref ab[N], ref ab[N]), bb[N].m_adField5, bb, Static2());
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool b;
int i = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
return 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new BB().Method1();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
/*
JIT JitDebuggable=0 JitDebugInfo=1
d:\com99\src\jit\il\dll\..\scopeinfo.cpp, Line 582 : Assertion failed 'lclVar->lvTracked' in 'Test.AA.Method1(int,int,byref):int'
if (m_ul == 1u)
param1 = param2;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new AA().Method1(0u, 0);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
return unchecked(m_ad[0] - (double)m_u * (m_ad[1] - loc));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Static1();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int[] an = new int[2];
bool b = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace JitTest
{
using System;
public class Test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ulong A = 0x3bbde5b000000000;
uint B = 0xaeb84648;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int L = 1;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool[] ab = new bool[2];
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
{
.method public static int32 _main() il managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
// Code size 6 (0x6)
.maxstack 8
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int L = 2;
while (1u > L)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
} while (F);
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int L = -111;
object O = null;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
param3 = (double)param4;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Method2(1.0d, 1, __arglist());
return 100;
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class BB
{
static void Method1() { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool local1 = false;
for (; local1; Method1()) { }
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public struct test
{
int6 = i;
int7 = i;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
test t = new test();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_877332642 {
//(Nov 12 1999)15:27:27
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 6
.locals ( int32, float64, float64, int64, int32, float64, int64, int32, int64, float64, float32, float32, float32, int64, float64, int32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_1235399248 {
//(Nov 12 1999)15:27:27
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 11
.locals ( float32, float32, float32, int32, int64, int32, int32, int32, float64, int32, int32, float32, float64, float32, int64, float32, int32, float64, float64, float64, int32, float64, int32, int32, int32, float64, int32, int64, int32, float32, int64, int32, int32, float32, int32, int32, float64, float64, int64, float32, int32, int32, float64, int32, int32, int32, float64, float32, int32, float32, float32, int32, int64, int32, int32, int32, float32, int32, int32, int32, int64, float64, int64, int32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
static void Method1(float param1, double[] ad) { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float[] local3 = new float[2];
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public struct AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool[] ab = new bool[2];
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool b = true;
do
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
static uint m_u;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool[] ab = new bool[4];
uint uu;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// <Code>
using System;
+using Xunit;
public class MyClass
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float f1 = float.Epsilon;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// <Code>
using System;
+using Xunit;
public class MyClass
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float f1 = float.Epsilon;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
catch (Exception) { }
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
static ulong m_ul;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly extern mscorlib
{
}
.method public static int32 main() il managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 8
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on rva_statics support see #2451 -->
<DisableProjectBuild>true</DisableProjectBuild>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
static void DoAnything() { throw new Exception(); }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool FALSE = true;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.IO;
using System.Reflection;
+using Xunit;
public class test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Type t = typeof(int);
Type t2 = typeof(long);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
//-----------------------------------------------------
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
// Entry point - Main -
//-------------------------
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
.locals (int32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static float64 field_0x9
//END STATIC FIELDS
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 18
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public ILGEN_0xb651d38d {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 19
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
return 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public static int[] Test(ref double[] param1, ref float[] param3)
{ return Method1(m_auStatic1, ref param3[2], __arglist()); }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double[] ad = new double[16];
float[] af = new float[16];
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public static float[] Static1(ref float param1) { return new float[7]; }
public static double[] Static2(float param2) { return (new double[7]); }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Method2(
__arglist(
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public static uint[] m_auForward5;
public static uint[] Method2() { return null; }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool local3 = true;
if (local3)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
static double m_dStatic3 = 273.31;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
uint[] local6 = new uint[7];
return BB.m_adStatic1;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
static bool[] Static3(ref int param1, uint[] param2, ref double param3,
object param4, ref float[] param5, ref object[] param6) { return null; }
- public static int Main() { Static2(__arglist()); return 100; }
+ [Fact]
+ public static int TestEntryPoint() { Static2(__arglist()); return 100; }
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
static AA s_aa = new AA(0);
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_aa = null;
GC.Collect();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
{
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
param2.Method1(ref param2.m_aulField4);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Method1(new BB(), __arglist());
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
return (int)param2[Method1(au[param1])];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
} while (D == 0);
throw new Exception();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.field static unsigned int32[] field_0xc
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
return param1[0].m_an;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
/*
set DOTNET_JitNoRegLoc=1
set DOTNET_JitSched=2
return L;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class test
{
x -= x * y;
return x;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// expected: 2 - 2 * 3 = -4
// with bug: 2 * (1 + 3) = 8
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class test
{
x -= x * y;
return x;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// expected: 2 - 2 * 3 = -4
// with bug: 2 * (1 + 3) = 8
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float x = 1;
x /= x * 2;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float x = 2;
x *= x * 3;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
"hello".CompareTo(null);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
(new AA[137])[101].Method1();
throw new DivideByZeroException();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
/*
set DOTNET_JITStress=1
*/
public class AA
{
- public static void Method1()
+ internal static void Method1()
{
uint L = 0;
#pragma warning disable 1718
}
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace QQ
{
using System;
public class AA
{
private static void Test(TypedReference arg, String result) { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
DateTime[] t = new DateTime[200];
t[1] = new DateTime(100, 10, 1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
int m_iField4;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
BB local3 = new BB();
bool b = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace Test
{
using System;
return 1;
return 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Collections;
+using Xunit;
namespace Test
return 1;
return 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
} while (B > A);
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
Array arr = null;
Func(ref ((Array[])arr)[0]);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace Test
{
using System;
public class App
{
private static void Method1(TypedReference param1, object obj) { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int[] an = { 0 };
Method1(__makeref(an[0]), 1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace Test
{
using System;
private static float[] Method1() { return s_af = new float[5]; }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool b = false;
if (b)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
return 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
ulong loc = 10;
return loc *= loc;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
AA_Static1();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
Finally();
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public struct CC
{
float Method1() { return 0; }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
CC[] cc = new CC[10];
byte[] ab = new byte[10];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace Test
{
using System;
{
Func(ref __refvalue(__makeref(s_b), String[])[0]);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace Test
{
using System;
{
private static void Func(TypedReference tr) { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool b = false;
TypedReference tr = __makeref(b);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace Test
{
using System;
byte bb = __refvalue((b ? __makeref(b) : tr), byte);
return 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
using System;
+using Xunit;
namespace Test
{
public class AA
{
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
byte* p = stackalloc byte[new sbyte[] { 10 }[0]];
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
{
bool m_b;
static void Static1(BB param3, ref bool param5) { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Static1(new BB(), ref new BB[] { new BB() }[0].m_b);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace Test
{
using System;
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.try {
call void fault_class::test_10_fault()
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib{}
+.assembly extern xunit.core {}
.assembly 'b55875'{}
.namespace H
{
{
.method public static int32 'Perm'() il managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.maxstack 4
.locals(int32)
.entrypoint
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
Array[] a = new Array[2];
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte b = 0;
Method1(ref b);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
return;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool b = false;
Method1(ref b);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Text;
+using Xunit;
public class InternTest
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
StringBuilder sb = new StringBuilder().Append('A').Append('B').Append('C');
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b56780 extends [mscorlib] System.Object {
.method public static int32 main() {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class PerfNotIf
{
return i;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new PerfNotIf();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
ret
}
.method public static int32 main() {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 10
ldnull
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class SamplesArray
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int[] myLens = new int[1] { 5 };
int[] myLows = new int[1] { -2 };
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public unsafe class bug1
{
public struct VT1
{
return *a0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
VT1 vt = new VT1();
double* a0 = stackalloc double[1];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public struct AA
{
public static bool m_bFwd2;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class bug1
{
public struct VT1
{
return Convert.ToInt32(Convert.ToInt32(Convert.ToInt32(vtstatic.a9 / 3 + vtstatic.a3)) % (Convert.ToInt32(vtstatic.a1 * vtstatic.a0) - Convert.ToInt32(Convert.ToInt32(2) % Convert.ToInt32(Convert.ToInt32(2) % (Convert.ToInt32(9))))));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
vtstatic.a0 = 3;
vtstatic.a1 = 2;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class testout1
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine("In First func (doing 5 iters - not unrolled)");
Test1(2);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public bool b2;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
foo(true, true);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
return null;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public struct DD
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class BB
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
AA.Static1();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
static bool m_bFlag = false;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool B = false;
if (B)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class Padre
{
private double _x = 10;
}
public class Test_b64579
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Hijo h = new Hijo();
h.Incrementa(1.0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup>
<!-- Needed for Environment.Exit -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace Test
{
using System;
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Reflection;
using System.Reflection.Emit;
using System.IO;
+using Xunit;
public class bug
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return 100;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace A
{
using System;
return sum + i;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool failed = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class AA
{
- public static void Main1()
+ internal static void Main1()
{
bool local2 = true;
while (local2) { throw new Exception(); }
}
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b70354 extends [mscorlib] System.Object {
.method public static int32 f1() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 1
br start_try
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b70909 extends [mscorlib] System.Object {
.method public static int32 f1() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 1
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class testout1
{
private static bool s_static_field_bool;
return false;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int True_Sum = 0;
int False_Sum = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
+using Xunit;
namespace Test
{
public class AA
{
- public static void Main1()
+ internal static void Main1()
{
try
{
}
finally { }
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
return new double[] { 42.0 };
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
return m_abFwd6;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new App().Method1();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
} while (m_bFwd1);
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new AA().Method1();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class X
{
static ushort us_8712 = 8712;
static ushort us_973 = 973;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
short sh3 = (short)(sh_8712 * sh_m973);
ushort us3 = (ushort)(us_8712 * us_973);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b71318 extends [mscorlib] System.Object {
.method public static int32 f1() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 1
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public unsafe class bug1
{
- public static void Func1(double* a01)
+ internal static void Func1(double* a01)
{
Console.WriteLine("The result should be 12");
Console.WriteLine(*a01 + (*a01 - (*a01 + -5.0)));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double* a01 = stackalloc double[1];
*a01 = 7;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class Bug
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double d1 = 0;
d1 = -d1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public unsafe class CSE2
{
public static int sa = 2;
return retval;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
VT vt = new VT();
vt.a0 = -(sa + sb);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public unsafe class testout1
{
public struct VT
public long a1;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
VT vt = new VT();
vt.a1 = 500L;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public unsafe class testout1
{
public struct VT_0_2
public static VT_0_2 vtstatic_0_2 = new VT_0_2();
- public static void Func_0_2(CL_0_2 cl_0_2, double* a3_0_2)
+ internal static void Func_0_2(CL_0_2 cl_0_2, double* a3_0_2)
{
VT_0_2 vt_0_2 = new VT_0_2();
vt_0_2.a0_0_2 = 10;
Console.WriteLine(cl_0_2.a1_0_2 - ((long)(Convert.ToInt32(vtstatic_0_2.a0_0_2) - (long)((cl_0_2.a1_0_2 - ((long)(Convert.ToInt32(vtstatic_0_2.a0_0_2) - (long)((long)(Convert.ToInt32(vtstatic_0_2.a0_0_2) + (long)(39L))))))))));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
CL_0_2 cl_0_2 = new CL_0_2();
double* a3_0_2 = stackalloc double[1];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class testout1
{
public struct VT
long retval = Convert.ToInt64((long)(Convert.ToInt32((Convert.ToInt32(clstatic.a1 - ((double)(vtstatic.a2 * vtstatic.a5))))) - (long)((long)(Convert.ToInt32(arr3d[4, 0, 3]) - (long)((long)(Convert.ToInt32(arr3d[4, 0, 3]) - (long)(((long)(vtstatic.a2 / 1L)))))))));
return retval;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Func();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
catch (Exception) { }
return 103;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class bug1
{
public struct VT
public static VT vtstatic = new VT();
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double a5 = -0.5;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b74976' {}
.class public b {
.method public static int32 c() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 1
ldc.i4.s 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class testout1
{
return retval;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
VT vt = new VT();
vt.a1 = 5;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Foo
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Foo o = new Foo();
Object a = 2.718281828458999;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public unsafe class testout1
{
public struct VT2
return 1;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
VT1 vt1 = new VT1();
vt1.a2 = 9;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class bug1
{
public struct VT
}
public static VT vtstatic = new VT();
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
CL cl = new CL();
float[] arr1d = new float[11];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.IO;
+using Xunit;
public class Bug26518
{
one = 1,
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
E1 e1 = E1.one;
Object that = E1.one;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Text;
+using Xunit;
public class rep
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
char[] chars = new char[] { (char)0x800 };
byte[] bytes = new byte[20];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
}
return arr[0];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
namespace Test
{
using System;
public class BB
{
- public static void Main1()
+ internal static void Main1()
{
bool local2 = false;
try
throw new Exception();
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class foo
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte[,] Param = new byte[2, 2];
Param[0, 0] = 1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class Foo
{
- static public int Main(string[] args)
+ [Fact]
+ static public int TestEntryPoint()
{
double inf = Double.PositiveInfinity;
System.Console.WriteLine(System.Math.Atan2(inf, inf));
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
</PropertyGroup>
using System.Text;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+using Xunit;
public class PInvokeTest
{
static String foo = "foo";
static String bar = "bar";
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (foo == bar)
foo = "foo";
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class Test_b79642
{
public byte m_value;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test_b79642 a = new Test_b79642();
Test_b79642 b = new Test_b79642();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class AA
{
{ return ((byte[])((Array)null))[AA.Static4(AA.Static2())]; }
static void Main1()
{ Static5(); }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.InteropServices;
+using Xunit;
namespace JitTest
Console.WriteLine("buffer " + num.ToString() + " is OK");
}
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
byte* buf1 = stackalloc byte[100], buf2 = null, buf3 = null;
initbuf(buf1, 1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool flag = false;
for (int i = 1; i <= -1; i++)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b81938 extends [mscorlib] System.Object {
.method public static int32 main() il managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 8
br.s IL_TRY
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public struct AA
{
public static sbyte m_suFwd3;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool local9 = false;
sbyte local11 = m_suFwd3;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class AA
{
static AA m_xStatic3;
static long m_lFwd5;
void Method1(ref long param1) { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public struct CC
{
static sbyte m_su;
static byte[] m_asi;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public struct BB
{
public static object m_xStatic1;
;
} while (param2 != param3);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
<NoStandardLib>True</NoStandardLib>
//
using System;
+using Xunit;
public struct AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool f = false;
if (f) f = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b85316_V1-M12-Beta2'{}
.class public _n {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldc.r8 99.1
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//COMMAND LINE: csc /nologo /optimize- /debug- /w:0 bug.cs
using System;
+using Xunit;
public class BB
{
byte Method1(sbyte[,][][,] param2)
{
return new byte[][, ,] { }[0][Math.Sign(1), Math.Sign(1), Math.Min(0, 0)];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly 'b101147'{}
.class public auto ansi Test_b101147 extends [mscorlib] System.Object {
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.locals ( int32 JVI,
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Diagnostics;
using System.Text;
+using Xunit;
public class A
public class Test_b113239
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte[] block = new byte[20];
int retval = B.B1(-123456781234567L, -123456781234567L, block, 0, 0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class test1
{
public struct VT
double retval = Convert.ToDouble(Convert.ToInt16(Convert.ToInt16(a4 / Convert.ToSingle(-1.582702F)) % Convert.ToInt16(vt.a1 * Convert.ToSingle(Convert.ToInt64(16L / 4L) * 0.12312290072441101))) / ((Convert.ToInt32(arr3d[4, 0, 3] + Convert.ToSingle(4UL * vt.a5)) / (vt.a5 + Convert.ToDouble(Convert.ToUInt64(4UL - 0UL) * -62.99951171875))) + (a6 - (a6 + arr3d[4, 0, 3] / -2.68274906263726E-07))));
return retval;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
VT vt = new VT();
vt.a1 = 23840;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public unsafe class test1
{
public class CL2
double retval = Convert.ToDouble((-1.0000000018626452 + *a3 + val_1) * clstatic.a0 + clstatic.a0 + val2 - val_3 + 0.0 + clstatic.a2);
return retval;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double* a3 = stackalloc double[1];
*a3 = 2.0000000018626451;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public struct AA
{
float a = 125.0f;
a += (a *= 60.0f);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Static5();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class CC
{
} while (a);
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ulong ul = 0;
Method1(ref ul, __arglist());
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
//
using System;
+using Xunit;
public class CC
{
public static bool Method2() { return true; }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
return 100;
}
}
- public static void Main1()
+ internal static void Main1()
{
bool a = false;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public class A
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Main1();
return 100;
}
- public static void Main1()
+ internal static void Main1()
{
bool b = false;
while (b)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public class AA
{
- public static void Static5(int param1)
+ internal static void Static5(int param1)
{
if (param1 != 0)
{
param1 = param1;
#pragma warning restore 1717
}
- public static int Main() { Static5(0); return 100; }
+ [Fact]
+ public static int TestEntryPoint() { Static5(0); return 100; }
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class AA
{
- public static int Main() { Main1(); return 100; }
- public static void Main1()
+ [Fact]
+ public static int TestEntryPoint() { Main1(); return 100; }
+
+ internal static void Main1()
{
(new float[1, 1, 1, 1])[0, 0, 0, 0] -= (new float[1, 1])[0, 0];
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class AA
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Main1();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public unsafe class testout1
{
public struct VT_1
return retval_1;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
CL cl = new CL();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class AA
{
static void Static3(int param1)
{
if (m_bFlag)
- Main();
+ TestEntryPoint();
else
m_ax[param1, param1] = null;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
{
.method public hidebysig static int32 main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
// Code size 22 (0x16)
.maxstack 3
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//COMMAND LINE: csc /nologo /optimize+ /debug- /w:0 bug.cs
using System;
+using System.Runtime.CompilerServices;
+using Xunit;
public struct AA
{
- public static int Main(string[] args)
+ [Fact]
+ public static void TestEntryPoint() => Run(new string[0]);
+
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ public static void Run(string[] args)
{
bool flag = false;
while (flag)
}
while (flag) { }
}
- return 100;
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//COMMAND LINE: csc /nologo /optimize+ /debug- /w:0 bug.cs
using System;
+using Xunit;
public struct AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
sbyte local2 = 0;
while (
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//COMMAND LINE: csc /nologo /optimize- /debug- /w:0 bug.cs
using System;
+using Xunit;
public struct AA
{
static void Test(int param, __arglist)
aa[param, Math.Min(0, 1)] = 0;
} while ((new bool[2, 2])[param, param]);
}
- public static int Main() { Test(0, __arglist()); return 100; }
+ [Fact]
+ public static int TestEntryPoint() { Test(0, __arglist()); return 100; }
}
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public struct AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public class AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool b = false;
b = (b ? (object)b : (object)new AA()) ==
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class CC
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool b = false;
object local19 = b ? null : (object)new CC();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class CC
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public struct AA
{
static bool Static3(ulong param2)
bool b = false;
return (bool)(object)(long)(byte)(b ? Convert.ToInt64(param2) : (long)param2);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public struct CC
{
static float Static3(short N)
return
82 * (ulong)N * (float)(((ulong)N) ^ (82u * (ulong)N));
}
- public static int Main() { Static3(0); return 100; }
+ [Fact]
+ public static int TestEntryPoint() { Static3(0); return 100; }
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
enum TestEnum { }
{
return new TestEnum[(long)(m_shStatic1 * 11u - m_shStatic1 * 11u)];
}
- public static int Main() { Static2(null); return 100; }
+ [Fact]
+ public static int TestEntryPoint() { Static2(null); return 100; }
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public struct AA
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool local3 = false;
do
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class AA
{
static Array Static1(ref Array[, ,] param1, ref int param2)
return param1[param2, param2,
((byte)(33 / param2)) | ((byte)((float)((byte)(33 / param2))))];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public struct A
{
{
return AA.get_pb(px)->m_bval;
}
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
AA loc_x = new AA(0, 100);
test_3_0_0(&loc_x);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public struct A
{
{
return 0;
}
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
AA loc_x = new AA(0, 100);
test_26((uint)&loc_x.m_b);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly 'b99667' {}
+.assembly extern xunit.core {}
.assembly extern mscorlib { }
.assembly extern System.Console
{
.class public auto ansi Test_b99667 extends [mscorlib] System.Object {
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
ldc.i4.s 100
ret
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Threading;
+using Xunit;
public class Test_b99969
{
return result;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test_b99969 t = new Test_b99969();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <!-- Needed for GCStressIncompatible -->
- <RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
class A
{
}
public class B
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
object[,] oa = new B[1, 1];
B[,] ba = (B[,])oa;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
class C
{
private string s = "This is private";
public class Class1
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
B[,] ab = new B[1, 1];
object[,] ao = ab;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
delegate void TestDelegate();
public class ArrayBounds
{
- public static void f1a()
+ internal static void f1a()
{
int [] a = new int[4];
for (int i=0; i < a.Length; --i)
a[i]=1;
}
}
- public static void f2a()
+ internal static void f2a()
{
int [] a = new int[4];
for (int i=0; i < a.Length; --i)
int b = a[i];
}
}
- public static void f3a()
+ internal static void f3a()
{
int [] a = new int[4];
for (int i=0; i < a.Length; --i)
Console.WriteLine(a[i]);
}
}
- public static void f4a()
+ internal static void f4a()
{
int [] a = new int[4];
for (int i=0; i < a.Length; a[i]=i,--i)
}
// ++i
- public static void f1b()
+ internal static void f1b()
{
int [] a = new int[4];
for (int i=0; i <= a.Length; ++i)
a[i]=1;
}
}
- public static void f2b()
+ internal static void f2b()
{
int [] a = new int[4];
for (int i=0; i <= a.Length; ++i)
int b = a[i];
}
}
- public static void f3b()
+ internal static void f3b()
{
int [] a = new int[4];
for (int i=0; i <= a.Length; ++i)
Console.WriteLine(a[i]);
}
}
- public static void f4b()
+ internal static void f4b()
{
int [] a = new int[4];
for (int i=0; i <= a.Length; a[i]=i,++i)
}
// ++i, 0x7fff
- public static void f1c()
+ internal static void f1c()
{
bool [] a = new bool[0x7fff];
for (short i=0x7ff0; i < a.Length+1; ++i)
a[i]=true;
}
}
- public static void f2c()
+ internal static void f2c()
{
bool [] a = new bool[0x7fff];
for (short i=0x7ff0; i < a.Length+1; ++i)
bool b = a[i];
}
}
- public static void f3c()
+ internal static void f3c()
{
bool [] a = new bool[0x7fff];
for (short i=0x7ffe; i < a.Length+1; ++i)
Console.WriteLine(a[i]);
}
}
- public static void f4c()
+ internal static void f4c()
{
bool [] a = new bool[0x7fff];
for (short i=0x7ff0; i < a.Length+1; ++i)
return 100;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (RunTests(new TestDelegate(f1a))!=100) return 1;
if (RunTests(new TestDelegate(f2a))!=100) return 1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static unmanagedexp int32 modopt([mscorlib]System.Runtime.CompilerServices.CallConvCdecl)
main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 3
.locals (int32* V_0, int32 V_1)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly 'b147816' {}
+.assembly extern xunit.core {}
.assembly extern mscorlib { }
.assembly extern System.Console
{
.class public auto ansi Test_b147816 extends [mscorlib] System.Object {
.method static public int32 main() cil managed
{ .entrypoint
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.maxstack 3
.locals (int32* V_0)
ldsflda int32 a
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
namespace TestClass
{
public class Test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double a = new TestClass().ApplyTime();
if (a == 5000)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <!-- Needed for UnloadabilityIncompatible -->
+ <!-- Needed for UnloadabilityIncompatible and Main(args) usage / GetCommandLineArgs -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<!-- This is failing due to the fact that it compares main arguments with the GetCommandLineArgs function result -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
<CLRTestPriority>1</CLRTestPriority>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//using System.Windows.Forms;
using System.IO;
using System.Text;
+using Xunit;
public class Test_b119294
{
public int[,] m_nSourceDestMap;
public static int m_coSourceLength = 100;
public static int m_coDestLength = 100;
- static public int Main()
+ [Fact]
+ static public int TestEntryPoint()
{
String testenv = Environment.GetEnvironmentVariable("URTBUILDENV");
if ((testenv == null) || (testenv.ToUpper() != "FRE"))
return 100;
}
- public void EstablishIdentityTransform()
+ internal void EstablishIdentityTransform()
{
//MessageBox.Show("EstablishIdentityTransform() enter");
int nSourceElements = m_coSourceLength;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
namespace Test
{
public class ShiftTest
public class Test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine("Both results should be 15");
// This works
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class BadMath
{
public static double[,] Res = new double[2, 40];
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double t0 = 1.5;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public unsafe class testout1
{
public struct VT_0_8_5
return retval_0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int retval;
retval = Convert.ToInt32(Func_0());
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup>
<!-- Needed for GCStressIncompatible, UnloadabilityIncompatible -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<GCStressIncompatible>true</GCStressIncompatible>
<!-- This test leaves threads running at exit -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly extern mscorlib
{
}
.method public static int32 modopt([mscorlib]System.Runtime.CompilerServices.CallConvCdecl)
main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 3
.locals (int32* V_0)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on rva_statics support see #2451 -->
<DisableProjectBuild>true</DisableProjectBuild>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// compile with csc /o+
using System;
+using Xunit;
public class MyClass
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double d1 = double.PositiveInfinity;
using System;
using System.Runtime.InteropServices;
+using Xunit;
internal struct VT
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
VT vt1 = new VT();
VT vt2 = new VT();
<PropertyGroup>
<!-- Needed for JitOptimizationSensitive -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
interface I<T>
{
}
public class Test_genisinst
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
C1<int> c1 = new C1<int>(100);
object o = c1;
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly 'b147924' {}
.assembly extern mscorlib
.method static public int32 BIGDAT()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
newobj instance void BIGDAT/WS_TYPE::.ctor ()
stsfld class BIGDAT/WS_TYPE BIGDAT::WS_DATA
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
class A { }
class B { }
interface IFoo<T>
System.Console.WriteLine("B");
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
C c = new C();
IFoo<A> i = c;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
struct Struct_32bytes
{
return result;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine(foo1());
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
struct Big10DW
public class Test_hugestruct
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Big100000DW b = new Big100000DW();
b.b10.b10.b10.b10.i5 = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Test_constrained1
{
- public static void M<T>(T t)
+ internal static void M<T>(T t)
{
System.Type type = t.GetType();
Console.WriteLine(type);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
M("Hello"); // Works fine
M(3); // CLR crashes
//
using System;
+using Xunit;
public class f8192
{
- public static void Callee(
+ internal static void Callee(
int a1,
int a2,
int a3,
int a8192
)
{ }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Callee(
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Diagnostics;
+using Xunit;
public class M
{
- public static void GenericClassStaticMethod()
+ internal static void GenericClassStaticMethod()
{
GenericClass<int>.classParameterType = typeof(int);
GenericClass<string>.classParameterType = typeof(string);
}
}
- public static void GenericClassInstanceMethod()
+ internal static void GenericClassInstanceMethod()
{
GenericClass<int>.classParameterType = typeof(int);
GenericClass<string>.classParameterType = typeof(string);
}
}
- public static void GenericClassVirtualMethod()
+ internal static void GenericClassVirtualMethod()
{
GenericClass<int>.classParameterType = typeof(int);
GenericClass<string>.classParameterType = typeof(string);
}
}
- public static void GenericClassDelegate()
+ internal static void GenericClassDelegate()
{
GenericClass<int>.classParameterType = typeof(int);
GenericClass<string>.classParameterType = typeof(string);
}
}
- public static void GenericClassField()
+ internal static void GenericClassField()
{
GenericClass<int>.classParameterType = typeof(int);
GenericClass<string>.classParameterType = typeof(string);
}
}
- public static void GenericClassProperty()
+ internal static void GenericClassProperty()
{
GenericClass<int>.classParameterType = typeof(int);
GenericClass<string>.classParameterType = typeof(string);
}
}
- public static void GenericClassVirtualProperty()
+ internal static void GenericClassVirtualProperty()
{
GenericClass<int>.classParameterType = typeof(int);
GenericClass<string>.classParameterType = typeof(string);
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public struct ValX1<T>
{
public static int counter = 0;
public static bool result = true;
- public static void Eval(bool exp)
+ internal static void Eval(bool exp)
{
counter++;
if (!exp)
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = 0;
int[] int_arr = new int[] { 0, 1, 2, 3 };
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public struct AA
{
static void f()
}
do { } while (flag);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
f();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Collections;
+using Xunit;
public enum TestEnum
{
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
using System;
using System.Diagnostics;
using System.Text;
+using Xunit;
public class A
public class Test_b02762
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte[] block = new byte[20];
return B.B1(-123456781234567L, -123456781234567L, block, 0, 0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly 'b03689'
{
}
.field public static int32 TLSFieldData at FieldData
.method public static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
ldsfld int32 test::TLSFieldData
stsfld int32 test::TLSFieldData
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on tls support see #2441 -->
<DisableProjectBuild>true</DisableProjectBuild>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
} // end of class x
+// $ isn't a valid identifier in C#, but we need the test entry point
+// to be callable from C# (specifically the wrapper generator code)
+.class public auto ansi _dollar_wrapper
+{
+ .method public static int32 Main() cil managed
+ {
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
+ .entrypoint
+ .maxstack 4
+ call int32 $::Main()
+ ret
+ }
+}
+
.class public auto ansi $
extends [mscorlib]System.Object
{
.field static privatescope class x aO$PST0400000B
.method public static int32 Main() cil managed
{
- .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
- 01 00 00 00
- )
- .entrypoint
// Code size 14 (0xe)
.maxstack 4
IL_0000: ldc.i4 0x7b
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
namespace Test
{
public class ShiftTest
public class Test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine("Both results should be 15");
// This works
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public struct AA
{
public static byte[, ,][] f()
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class AA
{
static void f(ref Array param)
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
f(ref m_arr);
Console.WriteLine("Passed.");
<PropertyGroup>
<!-- Needed for Environment.Exit -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class test1
{
return 1.0;
}
- public static void foo()
+ internal static void foo()
{
Console.Write(".");
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double c = 100.0;
double a = f1();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32 f1() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 50
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System {}
.assembly 'b16378' {}
.class public bbHndIndex
{
.method public static int32 f() cil managed
{
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 500
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public class gtnop
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte[] arr = new byte[1];
short i = 3;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public struct AA
{
public static char[, , , ,][, ,] Static1(char param1, int param2, bool[,] param3,
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class test
{
public struct VT
return Convert.ToDouble((((vtstatic.a4 * clstatic.a5) + (asgop0 - (0.25F - 0.235290527F))) / (cl.arr3d[4, 0, 3] - (vt.a1))));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double retval = Func();
if ((retval > -191) && (retval < -188))
// The .NET Foundation licenses this file to you under the MIT license.
.assembly 'b18049' {}
+.assembly extern xunit.core {}
.assembly extern mscorlib { }
.assembly extern System.Console
{
.class public auto ansi Test_b18049 extends [mscorlib] System.Object {
.method static public int32 main() cil managed
{ .entrypoint
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.maxstack 3
.locals (int32* V_0)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class Test_b00719
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try { f(); return 1; }
catch (OverflowException) { Console.WriteLine("PASSED"); return 100; }
return 2;
}
- public static void f()
+ internal static void f()
{
int i = 4;
i = i - 10;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>PdbOnly</DebugType>
<NoStandardLib>True</NoStandardLib>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32
main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 2
.locals init (unsigned int8& V_0,
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32
main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
// Code size 21 (0x15)
.maxstack 1
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.method public static int32
main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
// Code size 14 (0xe)
.maxstack 1
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b115932a extends [mscorlib] System.Object {
.method public static int32 Main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 2
.locals init (string V_0,
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b115932b extends [mscorlib] System.Object {
.method public static int32 foo() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 2
.locals init (string V_0,
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public struct AA
{
public static int[,] Static2()
return (new int[1, 1]);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Test_b578931
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int N = 3;
int tmp = (1 << N) - 1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Reflection;
using System.Runtime.InteropServices;
+using Xunit;
internal delegate int Deleg(int i, int j, int k, int l, int m, int n);
[System.Runtime.CompilerServices.MethodImpl(
System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
- public static int Main(String[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
cs1 t = new cs1();
- Console.WriteLine(t.GetType() == typeof(cs1) ? 100 : args.Length);
- return 100;
+ int result = t.GetType() == typeof(cs1) ? 100 : 1;
+ Console.WriteLine(result);
+ return result;
}
}
// Global field to store the big struct
.field static valuetype BigStruct s_bigStruct
- .method public hidebysig static int32 Main(string [] args) cil managed
+ .method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
- .locals init (int32 retValue)
+ .locals init (int32 retValue, string [] wasArgs)
+ ldc.i4.0
+ newarr [mscorlib]System.String
+ stloc.1
- ldarg.0
+ ldloc.1
call bool TestClass::Test1(string [] args)
brfalse.s FAILED
- ldarg.0
+ ldloc.1
call bool TestClass::Test2(string [] args)
brfalse.s FAILED
- ldarg.0
+ ldloc.1
call bool TestClass::Test3(string [] args)
brfalse.s FAILED
IL_0000: ret
}
- .method public hidebysig static bool Test1(string [] args) cil managed
+ .method public hidebysig static bool Test1(string [] args) cil managed noinlining
{
.locals init (bool retValue)
ldstr "Running Test1: Using a class with a big offset field"
IL_0000: ret
}
- .method public hidebysig static bool Test2(string [] args) cil managed
+ .method public hidebysig static bool Test2(string [] args) cil managed noinlining
{
.locals init (bool retValue)
ldstr "Running Test2: Using a valuetype with a not so big offset field"
IL_0000: ret
}
- .method public hidebysig static bool Test3(string [] args) cil managed
+ .method public hidebysig static bool Test3(string [] args) cil managed noinlining
{
.locals init (bool retValue)
ldstr "Running Test3: Using a valuetype with a big offset field"
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public struct AA
{
public static void f()
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+using Xunit;
//Disable the warning about having variables that are not used
#pragma warning disable 219
public class Test_vars2
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Collections;
using System.Runtime.InteropServices;
+using Xunit;
public struct AA
{
[StructLayout(LayoutKind.Sequential)]
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
class Exception1 : Exception { }
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool bPassed = true;
// Works
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class My
{
return null;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Object o = new Object();
foo(o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, o, bar(o), o);
.assembly extern mscorlib { }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b353858 extends [mscorlib] System.Object {
-.method public assembly static int32 main() cil managed
+.method public static int32 main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 1
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
ret
}
-}
-
.method public hidebysig static int32 Main() cil managed
{
ldloc.1
ret
}
+}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
+using Xunit;
namespace Tests
{
public class Test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if ((TestManyFields() == 100)
&& (TestManyFieldsPlusOne() == 100))
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void TestLdManyFields()
+ internal static void TestLdManyFields()
{
object o = Activator.CreateInstance(typeof(ManyFields));
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void TestLdManyFieldsPlusOne()
+ internal static void TestLdManyFieldsPlusOne()
{
object o = Activator.CreateInstance(typeof(ManyFieldsPlusOne));
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Class1
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine("Note that this is a test to verify that the implementation stays buggy");
object o = new short[3];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { auto }
+.assembly extern xunit.core {}
.assembly 'b409748' { }
.method public static vararg void Foo(int32)
{
.class public auto ansi Test_b409748 extends [mscorlib] System.Object {
.method public static int32 Exec()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
ldc.i4 1
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows, uses native varargs -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class CMain
{
public static int Count = 0;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
String s;
s = Gen<String>.x;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Reflection;
+using Xunit;
namespace Test
{
public class C2
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int ret = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b423755_Desktop extends [mscorlib] System.Object {
.method public static int32 Main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
ldc.i4 0
box int8
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly extern mscorlib {}
.assembly 'b423755' {
.class public auto ansi Test_b423755 extends [mscorlib] System.Object {
.method public static int32 Main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
ldc.i4 0
box int8
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Collections;
+using Xunit;
#if false
Here is the bug text from the bugs that motivated this regression case. I've annotated
return new Timer(callback, null, dueTimeInMilliseconds, Timeout.Infinite);
}
- public static void PrintFailureAndAddToTestResults(string format, params object[] args)
+ internal static void PrintFailureAndAddToTestResults(string format, params object[] args)
{
Console.WriteLine(format, args);
Mutate.RecordFailure(new Exception(String.Format(format, args)));
private static object s_syncRoot = new object();
private static volatile List<Exception> s_exceptions = new List<Exception>();
- public static void RecordFailure(Exception ex)
+ internal static void RecordFailure(Exception ex)
{
lock (Mutate.s_syncRoot)
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<PropertyGroup>
<!-- Needed for GCStressIncompatible, HeapVerifyIncompatible -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<!-- NOTE: This test takes too long and internally times out under GCStress/heap verify. It is not fundamentally incompatible if stress testing is fast enough. -->
<GCStressIncompatible>true</GCStressIncompatible>
<HeapVerifyIncompatible>true</HeapVerifyIncompatible>
<PropertyGroup>
<!-- Needed for GCStressIncompatible -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<!-- This test is too slow under GCStress=3. Issue: https://github.com/dotnet/runtime/issues/50615 -->
<GCStressIncompatible>true</GCStressIncompatible>
</PropertyGroup>
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestTargetUnsupported Condition="'$(RuntimeFlavor)' != 'coreclr'">true</CLRTestTargetUnsupported>
</PropertyGroup>
<PropertyGroup>
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Collections;
+using Xunit;
public class GenType1<T>
{
#pragma warning restore 0414
[MethodImplAttribute(MethodImplOptions.NoInlining)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class MainApp
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int a, prev;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
//((((((s.e*((s.a+(s.b*s.c))-(s.c*s.d)))-((s.f+(s.e*s.f))-(s.g*s.h)))+(s.e+((s.a+(s.b*s.c))-(s.c*s.d))))-(s.g+((s.f+(s.e*s.f))-(s.g*s.h))))+((s.a+((s.h+(s.f+s.g))-(s.p*s.q)))*(((s.a+s.b)+s.g)-((s.c+s.b)*s.k))))-(((s.b*s.b)+s.g)-((s.c+s.b)*s.k)))
//permutations for ((((((s.e*((s.a+(s.b*s.c))-(s.c*s.d)))-((s.f+(s.e*s.f))-(s.g*s.h)))+(s.e+((s.a+(s.b*s.c))-(s.c*s.d))))-(s.g+((s.f+(s.e*s.f))-(s.g*s.h))))+((s.a+((s.h+(s.f+s.g))-(s.p*s.q)))*(((s.a+s.b)+s.g)-((s.c+s.b)*s.k))))-(((s.b*s.b)+s.g)-((s.c+s.b)*s.k)))
//((((((s.e*((s.a+(s.b*s.c))-(s.c*s.d)))-((s.f+(s.e*s.f))-(s.g*s.h)))+(s.e+((s.a+(s.b*s.c))-(s.c*s.d))))-(s.g+((s.f+(s.e*s.f))-(s.g*s.h))))+((s.a+((s.h+(s.f+s.g))-(s.p*s.q)))*(((s.a+s.b)+s.g)-((s.c+s.b)*s.k))))-(((s.b*s.b)+s.g)-((s.c+s.b)*s.k)))
using System;
public class Test_Main
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int ret = 100;
class_s s = new class_s();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Collections;
using System.Collections.Generic;
+using Xunit;
public class Test
{
- public static void IsType<T>(object o, bool expectedValue)
+ internal static void IsType<T>(object o, bool expectedValue)
{
bool isType = o is T;
Console.WriteLine("{0} is {1} (expected {2}): {3}", o.GetType(), typeof(T), expectedValue, isType);
throw new Exception("Casting failed");
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Object o = null;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType />
<NoStandardLib>True</NoStandardLib>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly extern mscorlib{}
{
.method public hidebysig static int32 main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 2
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
-.assembly test {}
+.assembly b598031 {}
.assembly extern xunit.core {}
.class public auto ansi beforefieldinit Program
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
- <Compile Include="test.il" />
+ <Compile Include="$(MSBuildProjectName).il" />
</ItemGroup>
</Project>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
-.assembly 'test2' {}
+.assembly 'b598031_2' {}
.assembly extern xunit.core {}
.class public auto ansi beforefieldinit switchdefaultonly1
extends [mscorlib]System.Object
{
- .method public hidebysig static int32
- Main(string[] args) cil managed
+ .method public hidebysig static int32
+ Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
+ .locals init ([0] int32 V_0)
+ ldc.i4.0
+ newarr [mscorlib]System.String
+ call int32 switchdefaultonly1::MainX(string[])
+ ret
+ }
+
+ .method public hidebysig static int32
+ MainX(string[] args) cil managed noinlining
+ {
// Code size 44 (0x2c)
.maxstack 2
.locals init ([0] int32 V_0)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
- <Compile Include="test2.il" />
+ <Compile Include="$(MSBuildProjectName).il" />
</ItemGroup>
</Project>
using System.Threading;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+using Xunit;
public class Test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool testCaseSucceeded = false;
string[] theArray = { "Wrong =0", "Correct =1", "Wrong =2", "Wrong =3" };
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Reflection;
+using Xunit;
namespace b392262
{
result = (vt.bool1 && vt.bool2 && vt.bool3 && vt.bool4);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
VT vt = new VT();
vt.bool1 = true;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Collections.Generic;
+using Xunit;
namespace TestAnonymousTypes
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Customer c = new Customer { Name = "Sree", Address = "something somethwere", Zip = 98007 };
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
*/
using System;
+using Xunit;
public class ByRef_GCHole
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ByRef_GCHole h;
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class small_repro
{
return new short[] { 0x100, 0x101, 0x102 };
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
small_repro s = new small_repro();
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Security;
+using Xunit;
public class Foo
{
- public virtual void callee()
+ internal virtual void callee()
{
Console.WriteLine("callee");
}
- public static void caller(object o)
+ internal static void caller(object o)
{
if (o == null)
return;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Foo f = new Foo();
caller(f);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// <Code>
using System;
+using Xunit;
public class MyClass
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool failed = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public class EAObject
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int successes = 0;
int result;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
+ <!-- TODO: This test isn't executing properly with test merging. -->
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
</PropertyGroup>
<PropertyGroup>
<DebugType>Full</DebugType>
//
using System;
+using Xunit;
public class ConstToString
{
}
return iret;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int iret = 100;
if (IntConstToString() != 100)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// It should print out "Pass".
using System;
+using Xunit;
struct MyStruct
{
return new MyStruct();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if ((object)MainApp.Foo() == null)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//Test expects Foo() to catch the exception thrown by Bar().
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class My
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class ClassWithCctor<T>
{
public class Repro
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public struct MyStruct
{
{
static byte s = 1;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
MyStruct myStruct;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.maxstack 1
IL_0000: ldarg.1
IL_0001: castclass My
- IL_0006: callvirt instance valuetype [mscorlib]System.Nullable`1<bool> [FastPropertyAccessor]My::get_MyProperty()
+ IL_0006: callvirt instance valuetype [mscorlib]System.Nullable`1<bool> [b176032]My::get_MyProperty()
IL_000b: box valuetype [mscorlib]System.Nullable`1<bool>
IL_0010: ret
} // end of method MyProperty::GetProperty
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
+using Xunit;
public class My
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
My[] s = new My[0];
IList<My> ls = (IList<My>)s;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+using Xunit;
#pragma warning disable 219
public class Test_b19679
Console.WriteLine(a400);
return 100;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
(new Test_b19679()).RunTest0_Inline();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<!-- Set to 'Full' if the Debug? column is marked in the spreadsheet. Leave blank otherwise. -->
<DebugType>Full</DebugType>
<Optimize>True</Optimize>
using System;
using System.Collections.Generic;
+using Xunit;
namespace GCHangCSharp
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
TestClass t = new TestClass();
List<TestClass.LongStruct> x = t.Test();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class MainApp
{
static int zero = 0;
static int result;
- public static void Foo()
+ internal static void Foo()
{
result = one / zero;
Foo();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//The test checks for a gchole and an assert. The expected output is 33 and 3 when the test passes.
using System;
+using System.Runtime.CompilerServices;
+using Xunit;
class IntWrapper
{
public int value;
}
-class ReproTwo
+public class ReproTwo
{
static IntWrapper Add36(int ecx, int edx, int i3, int i4, int i5, int i6,
int i7, int i8, int i9, int i10,
}
+ [Fact]
+ public static int TestEntryPoint() => Run(0);
+
static int Main(String[] args)
{
try
{
val = Int32.Parse(args[0]);
}
+ return Run(val);
+ }
+ catch (Exception e)
+ {
+ Console.WriteLine(e.Message);
+ return 666;
+ }
+ }
+
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ static int Run(int val)
+ {
+ try
+ {
bool bugResult = Bug(val);
if (bugResult) return 100;
else return 101;
Console.WriteLine(e.Message);
return 666;
}
-
-
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
namespace TernaryOperatorOptimization
{
{
private static bool caughtException = false;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine("Regression testcase for devdiv 106272 - Invalid JIT optimization");
Console.WriteLine("with ternary/conditional operator (?:) in release builds");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
*/
using System;
+using Xunit;
#pragma warning disable 0649
return c.i4094;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly extern mscorlib { }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b48850 extends [mscorlib] System.Object {
.method public static int32 Main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 3
.locals init (int32 V_0)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class WipOrderRow
{
public class MainApp
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class ContentType
{
public class My
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new ContentType();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public class TEST
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test();
return 100;
}
- public static void Test()
+ internal static void Test()
{
int SSS;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test(null);
Console.WriteLine("Test Success");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
namespace Bug565326
{
public class Class1
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+using Xunit;
//Disable the warning about having variables that are not used
#pragma warning disable 219
Console.WriteLine(a400);
return 100;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
(new Test_Inline_Vars2()).RunTest0_Inline();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//The test checks for a gchole and an assert failure.
//The test should print out 33 and 3 if it passed the gchole and assert tests.
using System;
+using System.Runtime.CompilerServices;
+using Xunit;
class IntWrapper
{
public int value;
}
-class ReproTwo
+public class ReproTwo
{
static IntWrapper Add36(int ecx, int edx, int i3, int i4, int i5, int i6,
int i7, int i8, int i9, int i10,
}
+ [Fact]
+ public static int TestEntryPoint() => Run(0);
+
static int Main(String[] args)
{
try
{
val = Int32.Parse(args[0]);
}
+ return Run(val);
+ }
+ catch (Exception e)
+ {
+ Console.WriteLine(e.Message);
+ return 666;
+ }
+ }
+
+ [MethodImpl(MethodImplOptions.NoInlining)]
+ static int Run(int val)
+ {
+ try
+ {
bool bugResult = Bug(val);
if (bugResult) return 100;
else return 101;
Console.WriteLine(e.Message);
return 666;
}
-
-
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
/*
QFE regression TC for AV while optimizing away basic blocks that
are not used which contain switch statements.
public class TEST
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int SSS;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
struct BigStruct
{
public class My
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
BigStruct[,] a = new BigStruct[1, 3];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//static member is passed by ref to an interlocked method.
using System;
+using Xunit;
namespace VTest
{
public class TestMain : refTest<TestMain>
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int ret = 100;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class RandomTwister64
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i;
int countZero = 0;
// Well, and it runs fast.
using System;
+using Xunit;
public class Program
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
TestSHL();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//Test returns 100 on success and 1 on failure.
using System;
+using Xunit;
public abstract class Base<U>
{
return n;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int ret = 100;
string s = "abc";
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Threading;
+using Xunit;
public class My
{
Thread.Sleep(5);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Thread t = new Thread(new ThreadStart(Worker));
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
.ver 2:0:0:0
}
+.assembly extern xunit.core {}
.assembly extern System
{
.publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4..
.method public static int32 repro() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
// Code size 151 (0x97)
.maxstack 3
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
+using Xunit;
public class Test_DDB188478
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test_DDB188478[] test = new Test_DDB188478[0];
IList<Test_DDB188478> ls = (IList<Test_DDB188478>)test;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
/// <summary>
/// InvalidCastException is thrown when 'ngen /profile' image doesn't restore System.Enum TypeRef
/// </summary>
public class Test_Dev11_457559
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (RunTest(1))
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly extern mscorlib { }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class
- private auto ansi beforefieldinit sealed abstract
+ public auto ansi beforefieldinit sealed abstract
Test.App
extends [mscorlib]System.Object
{
-.class public auto ansi Test_Test_HndIndex_10_Plain extends [mscorlib] System.Object {
+.class nested public auto ansi Test_Test_HndIndex_10_Plain extends [mscorlib] System.Object {
.method public hidebysig static int32 Main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 8
.locals init (class Test.DerivedClass derivedInstance, int32 exitCode)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
+ <!-- Needed for issues.target - need to prevent Mono Ahead of Time compiler
+ from running -->
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class Program
{
throw new Exception("FAILED");
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int d = 0;
int i = 3;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace ConsoleApplication1
{
/// </summary>
/// <param name="args"></param>
/// <returns></returns>
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Test
{
/// </summary>
/// <param name="args"></param>
/// <returns></returns>
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double expected = -4.54403989493052E+18;
double value = -66876.654654;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Program
{
public static bool IsGuid(object item)
{
return item is Guid;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (IsGuid(Guid.NewGuid()))
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.class public auto ansi beforefieldinit CrashTest.Program
{
- .method public assembly hidebysig static int32 Main() cil managed
+ .method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Base
{
d.j = 0x77777777;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
/* This issue is caused by CSE and trying to pull a typecheck out of a loop.
* We used to do this incorrectly and this could allow a type to call methods
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
*/
using System;
+using Xunit;
namespace BadOverride1
{
public static class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Dll.Apis.RunDllCode();
Console.Write("\r\n");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace BadMax1
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return App.RunRepro();
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace BadBox1
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
namespace Test
{
public static class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int iret = 100;
Console.WriteLine("Starting JMP tests...\r\n");
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace R3Trasher1
{
public static class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var board = new Board();
int ret = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace Test
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
App.DispatchCalloutSequence("TopLevel", ILPart.CallThroughFrameWithMultipleEndfinallyOps_TopLevel);
App.DispatchCalloutSequence("Nested", ILPart.CallThroughFrameWithMultipleEndfinallyOps_Nested);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Collections;
using System.Collections.Generic;
using System.Linq;
+using Xunit;
namespace GcHole1
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
string result;
IEnumerable<string> sequence;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.IO;
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
namespace Test
{
public static class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var container1 = new Container<string>();
var container2 = new Container<object>();
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
namespace ShowLocallocAlignment
{
return 101;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return App.RunAlignmentCheckScenario();
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace UninitializedHighWord
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
App.PrepareMethods();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace R3Contention
public static class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var layoutOptions = new LayoutOptions();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace UseTrashedVfp1
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool fTestPassed;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- #2445 -->
<DisableProjectBuild>true</DisableProjectBuild>
*/
using System;
+using Xunit;
struct VT
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly 'conv_ovf_i4' {}
+.assembly extern xunit.core {}
.assembly extern System.Console { auto }
.assembly extern System.Runtime.Extensions { auto }
.assembly extern mscorlib { auto }
.class public auto ansi Test_conv_ovf_i4 extends [mscorlib] System.Object {
.method static public int32 main() il managed
{
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.locals init ([0] int64 alpha, [1] int32 delta, [2] int32 result)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public class P
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// This bug is caused by a broken flowgraph due to a return from
// a try inside a catch block
return 100;
}
- public static void TestCatchReturn()
+ internal static void TestCatchReturn()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
*/
// csc /o- /debug+
using System;
+using Xunit;
struct BigCopy
{
public static class Repro
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
BigCopy b1, b2, b3;
b1.gc = "me";
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public static class Repro
{
public int x, y;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
foo f = new foo();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public static class Module
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int Var1, Temp;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Net;
+using Xunit;
namespace Test
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool flag = false;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Repro
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
//We used to incorrectly generate an infinite loop by
//emitting a jump instruction to itself
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<Project>
+ <PropertyGroup>
+ <BuildAsStandalone Condition="'$(BuildAsStandalone)' == ''">false</BuildAsStandalone>
+
+ <AssemblyName Condition="'$(BuildAsStandalone)' != 'true'">$(MSBuildProjectName.Replace('_il_d', '').Replace('_il_r', ''))</AssemblyName>
+ </PropertyGroup>
+
+ <Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props, $(MSBuildThisFileDirectory)..))" />
+
+ <PropertyGroup>
+ <RunAnalyzers>true</RunAnalyzers>
+ <NoWarn>$(NoWarn);IL3000</NoWarn>
+ <EnableNETAnalyzers>false</EnableNETAnalyzers>
+ </PropertyGroup>
+</Project>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
// This test ensures that we pass by-value Vector3 arguments correctly, especially on x86.
// On x86, we must ensure that we properly treat an outgoing Vector3 as a 12-byte value
return v3 + v.X + v.Y + v.Z;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float f = 4.0f;
return Sum(f, Vector3.Zero) == f ? 100 : 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace ReadMemBytes
{
return count;
}
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
byte* buffer = stackalloc byte[4];
buffer[0] = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// This test case is meant to test an optimization in morph that
// transforms helper call JIT_Stelem_Ref(a, null, i) to a[i] = null,
public class DevDiv_142976
{
[MethodImpl(MethodImplOptions.NoInlining)]
- public static String Foo()
+ internal static String Foo()
{
return null;
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void Bar()
+ internal static void Bar()
{
String[] args = new String[10];
if (args != null)
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
static bool flag;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
flag = true;
return Test();
}
- public static int Test()
+ internal static int Test()
{
try
{
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void ThrowException()
+ internal static void ThrowException()
{
if (flag)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly extern mscorlib { }
-.assembly extern System.Runtime
-{
- .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
- .ver 4:1:0:0
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
return res;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool res = Program.Test(0x8100000000000000);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly DevDiv_199169
{
}
IL_000d: ret
}
-.method public assembly static int32 main() cil managed
+.class public auto ansi Test
{
+.method public static int32 main() cil managed
+{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 6
.locals (int32 V_0)
IL_0048: ldc.i4.s 101
IL_0050: ret
}
+}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
+using Xunit;
// Regression test for bug 200492, in which the x64 codegen for
// integer casts would unconditionally suppress same-register
return (attribute.Field == (ulong)6);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int errors = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
// in different types require special handling.
.assembly extern legacy library mscorlib { }
+.assembly extern xunit.core {}
.assembly DevDiv_216571
{
}
.class public auto ansi Test_DevDiv_216571 extends [mscorlib] System.Object {
-.method public assembly static int32 main() cil managed
+.method public static int32 main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 3
.locals (float32 V_2,
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Test_DevDiv_255294
{
static bool f;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
f = true;
Test_DevDiv_255294 test = new Test_DevDiv_255294();
<PropertyGroup>
<!-- Needed for JitOptimizationSensitive -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// This test is a reduced repro case for DevDiv VSO bug 278365.
// The failure mode is that the RyuJIT/x86 backend changed call to ROUND intrinsic
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Metadata version: v4.0.30319
-.assembly extern System.Runtime
-{
- .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
- .ver 4:1:0:0
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.CompilerServices;
+using Xunit;
struct MyStruct
{
return (int)(s.f1 + s.f2 + (int)s.f3 + s.f4);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
MyStruct s = new MyStruct(1, 2, 3, 4);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
// NOTE: the bug for this test was an assertion in RyuJIT/x86 when generating code for a double-returning call that
// was spilled by the RA and subsequently used. The call in question is the call to `C.GetDouble` in `C.Test`.
return 100;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Test(false);
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- There is a 32 and 64 version of this test to allow it to be compiled for all targets -->
<CLRTestTargetUnsupported Condition="'$(TargetBits)' != '32'">true</CLRTestTargetUnsupported>
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- There is a 32 and 64 version of this test to allow it to be compiled for all targets -->
<CLRTestTargetUnsupported Condition="'$(TargetBits)' != '64'">true</CLRTestTargetUnsupported>
using System;
+using Xunit;
public class Program
return true;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
string s = "skip"; // Test checks commpilation process.
VerifyMacvalueSSlV2(s);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup>
// skipping SSA (and dependent optimizations). This pass is disabled in the project file by setting JitDoSsa to 0
// before running the test.
-struct S
+using Xunit;
+
+public struct S
{
long m_fld;
int m_a, m_b, m_c, m_d;
- static int Main(string[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
S s;
- s.m_fld = (long)args.Length;
+ s.m_fld = 0;
return 100;
}
}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
// This test ensures that the value number store (and its users) behave properly in the event that VN data is requested
// for trees without value numbers. The original repro was a rather large method with a significant amount of dead code
// assign value numbers to the dead code, but assertion prop still runs over the dead code and attempts to use VN info,
// which resulted in a number of asserts.
-static class C
+public static class C
{
[MethodImpl(MethodImplOptions.NoInlining)]
static int N(ref int i)
return b ? 0 : 1;
}
- static int Main(string[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
- int i = args.Length;
+ int i = 0;
return N(ref i);
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// The original repro for this test was an assertion after code generation that the actual maximum depth of the stack
// was less than or identical to the estimated depth of the stack as calculated during morph. The calculation was
return 100;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return M(2.0);
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class C
{
return true;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// The original repro of the bug associated with this test involved an assert after re-morphing a tree modified
// by CSE: the original tree contained both a CSE def and a CSE use, and re-morphing eliminated the use, causing
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// thrown.
using System;
+using Xunit;
public static class C
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = -4;
ulong l = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Numerics;
+using Xunit;
// This test is a repro case for DevDiv VSO bug 288222.
// The failure mode is that the size was not being set for a "this" pointer
public delegate void CopyToDelegate(float[] array, int start);
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void MyCopyTo(CopyToDelegate doCopy, float[] array, int start)
+ internal static void MyCopyTo(CopyToDelegate doCopy, float[] array, int start)
{
doCopy(array, start);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// This testcase reproduces a bug where the tree re-sequencing was not correct for
// fgMorphModToSubMulDiv(), resulting in an assert in LSRA.
return arg % val;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = -1;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
// -- Begin Main --------------------
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
// -- -inf/-inf --
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Metadata version: v4.0.30319
-.assembly extern System.Runtime
-{
- .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
- .ver 4:2:0:0
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Xml;
using System.Xml.XPath;
using System.Xml.Xsl;
+using Xunit;
namespace XSLTest
// The jit performs an optimization transforming the tail call into a loop.
// The bug was that the local was only zero-initialized for the first iteration of the loop.
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
string inputXml = "Input.xml";
string inputXsl = "Transform.xsl";
<PropertyGroup>
<!-- Needed for Content -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType />
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Repro case for a bug involving byref-typed appearances of int-typed lclVars.
using System.Runtime.CompilerServices;
+using Xunit;
public struct S
{
return s;
}
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
S s;
return Test(&s)->i;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime {auto}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly DevDiv_524309 {}
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime {auto}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console {auto}
.assembly DevDiv_534476 {}
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { auto }
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console { auto }
.assembly DevDiv_541648 { }
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class DevDiv_541643
{
Console.WriteLine("Result: " + result);
return result;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = test(10);
return Pass;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Struct with 4 fields
public struct MyStruct
public class DevDiv_543057
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int retVal = TestClass.Pass;
TestClass c = new TestClass();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class DevDiv_543057
Console.WriteLine("Result: " + result);
return Pass;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return test(5, 6);
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// waiting for the even/odd pair, which wasn't added yet because the odd half was still occupied.
.assembly extern mscorlib { auto }
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console { auto }
.assembly DevDiv_544983 { }
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { auto }
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console { auto }
.assembly DevDiv_544985 { }
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The bug that this test captures was a case where arm LSRA built wrong uses order for
// the IL_0090 shift operand.
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly 'DevDiv_545497' {}
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// dead, all of their children must be marked as unused.
.assembly extern mscorlib { auto }
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console { auto }
.assembly DevDiv_545500 { }
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class DevDiv_545504
{
Console.WriteLine("Result: " + result);
return result;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = (int)test(10);
if (result != 267386880)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
-class Test
+public class Test
{
static Random random;
- public static int Main ()
+ [Fact]
+ public static int TestEntryPoint()
{
random = new Random ();
VectorSingle_op_Division_VectorSingle_VectorSingle (5);
}
[MethodImpl (MethodImplOptions.NoInlining)]
- public static void VectorSingle_op_Division_VectorSingle_VectorSingle (long iterations)
+ internal static void VectorSingle_op_Division_VectorSingle_VectorSingle (long iterations)
{
Vector<float> dividend = CreateRandomVector ();
Vector<float> divisor = CreateRandomVector ();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
// Metadata version: v4.0.30319
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly DevDiv_578214 {}
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// is able to move PUTARG_STK.
// Metadata version: v4.0.30319
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly 'DevDiv_578217' {}
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
// In this test case, we have a struct S that contains a single Vector2 field (Vector),
// with an implicit conversion from an array of float to S.
}
public static implicit operator S(float[] numbers) => new S(numbers);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S s = new float[] { 1.0f, 2.0f };
Console.WriteLine(s.Vector);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { auto }
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console { auto }
.assembly DevDiv_590771 { }
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { auto }
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console { auto }
.assembly DevDiv_590772 { }
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Test description
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly DevDiv_591210 {}
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { auto }
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console { auto }
.assembly DevDiv_605447 { }
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public static class Test_DevDiv_653853
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (RunTest(0) == 5)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { auto }
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console { auto }
.assembly DevDiv_710234 { }
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
// Based on DevDiv_714266, the issue reporoduced with JitStressRegs=0x1.
// `minRegCandidateCount` for `RefTypeUpperVectorSaveDef` did not count one temporary register
public class DevDiv_714266
{
[MethodImpl(MethodImplOptions.NoInlining)]
-
- public static void CallWithoutUsesAndDefs()
+ internal static void CallWithoutUsesAndDefs()
{
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void MethodWithManyLiveVectors()
+ internal static void MethodWithManyLiveVectors()
{
Vector<float> v = new Vector<float>();
});
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
MethodWithManyLiveVectors();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
struct Struct16bytes
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
StructWithStructField s = new StructWithStructField();
s.structField.a = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace DevDiv_736188
{
- class Program
+ public class Program
{
private static object InternalSyncObject = new object();
internal static T CallWith2Args<T>(ref T field, Func<T> initializer) where T : class =>
CallWith3Args(ref field, ref InternalSyncObject, initializer);
- static int Main(string[] args)
+ [Fact]
+ public static void TestEntryPoint()
{
+ var args = new string[0];
CallWith2Args(ref args, null);
- return 100;
}
}
}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class Repro
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// This testcase ensures that we correctly handle static field
// reads of different size than the destination for mul
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Repro
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
//This testcase ensures that we correctly generate one ReadUInt16() call
//instead of two due to a bug in fgmorph which transformed a call result
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Repro
{
static char c1 = (char)32768;
static char c2 = (char)0;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
//This testcase ensures that we correctly generate character comparisons
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public static class Repro
{
static double NegativeZero = -0.0;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// This testcase ensures that we explicitly add Negative zero
// and Positive Zero producing Positive Zero(0x00000000 000000000)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Explicitly don't reference the generator here as the source here blows the stack whenever a SyntaxVisitor traverses it (which happens as part of the generator execution). -->
<ReferenceXUnitWrapperGenerator>false</ReferenceXUnitWrapperGenerator>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Repro case for a bug where copies from one struct-typed field of a local
// to another were being illegally elided.
public static class C
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Repro1.RunTest() != 100)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_10621
{
// An empty try with nested try finallys where
// the inner finally cannot be cloned.
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int x = 0;
try {
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
public class GitHub_10714
{
[MethodImpl(MethodImplOptions.NoInlining)]
static int Test() => Interlocked.Exchange(ref intToExchange, innerShort);
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int oldValue = Test();
return (oldValue == -1 && intToExchange == 2) ? Passed : Failed;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// loops and (illegally) above the corresponding type initializer calls.
using System.Runtime.CompilerServices;
+using Xunit;
namespace N
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Sum = 0;
SumNFourteens(7); // Now Sum = 14 * 7 = 98 (and Two = 2)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
// This test checks whether or not the JIT properly spills side effects in the importer when dumping multi-reg values
// to temps. If the JIT does not do so correctly, the calls to GetString() and GetDecimal() will be reordered and the
return vs.GetReturnValue();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return M(new ValueSource());
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_1133
{
s_dt = dt;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 100;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_11343
{
int unused = s.Length;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_11407
{
[MethodImpl(MethodImplOptions.NoInlining)]
static foo getfoo() { return new foo(); }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = 100;
foo myFoo = getfoo();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
class GitHub_11408
{
foo((IntPtr)(&x));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bar();
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType />
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
+using Xunit;
namespace TestApp
{
public class Program
{
[MethodImpl(MethodImplOptions.NoOptimization)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var comparer = EqualityComparer<StructWithValue>.Default;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
return (actual == expected) ? rv : 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Init();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
-class GitHub_1161
+public class GitHub_1161
{
struct Number
{
Number x = 4, y = 2;
return (int)(x + y);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return (Test() == 6) ? 100 : -1;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// loops and (illegally) above the corresponding type initializer calls.
using System.Runtime.CompilerServices;
+using Xunit;
namespace N
{
return s;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return foo(20, 4);
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class C
{
return (float)Math.Pow(a, (float)Math.Pow(b, a));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return L(0) == M(float.NegativeInfinity, 0) ? 100 : 0;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Numerics.Vectors { auto }
.assembly extern System.Runtime.CompilerServices.Unsafe { auto }
.assembly extern mscorlib { auto }
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class MutateStructArg
{
public int X;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
P l1 = new P();
l1.S = "Hello World";
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_11816
{
return f[0];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float value = 0.0F;
value += TestStruct();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class TailCallOptTest
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool res1 = Caller1(new object(), 0L, 0xBEEF, new TypedDouble(1.0), new TypedDouble(2.0), new TypedDouble(3.0));
bool res2 = Caller2(new object(), 0L, 0xBEEF, new TypedDouble(1.0), new TwoInts(3, 5), new TypedDouble(3.0));
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Reflection;
+using Xunit;
namespace Test
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test t = new Test();
if (!t.TestMethod())
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
struct S0
{
public class GitHub_12398
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 100;
if (TestBinary() != 0) {
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public struct S<K>
{
public class B
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var a = new X<int, string>(11);
int z = a.Test();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class X<K>
{
public class B
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var a = new X<int>(11);
bool result = a.Test();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class X<K>
{
public class B
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
X<int> a = null;
bool result = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class X<K>
{
public class B
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
X<int> a = null;
bool result = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
struct R
{
public class B
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
X<R> a = null;
bool result = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public interface IGet
{
public class B
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var r = new R();
r.a = 3;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public struct V
{
return result;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// Ensure we get right order of side effects from boxes
// now that we are splitting them into multiple statements.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Numerics;
+using Xunit;
public class X<K>
{
public class B
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
X<Vector3> a = null;
bool result = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
public class Program
{
}
}
- public static void Test()
+ internal static void Test()
{
var box = new BoundingBoxTest();
box.Min = Vector3.Min(box.Min, box.Min);
var hmm = box.GetHashCode();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var someMemory = new int[1];
var someMoreMemory = new int[1];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Simple struct containing two integers (size 8).
struct MyStruct
static int Pass = 100;
static int Fail = -1;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// Entry point for our repro.
// Pass in a bunch of integers. The 5th parameter is a MyStruct, a value type of size 8.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Collections;
+using Xunit;
public class Regression13056
{
return value;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Clamp(1, 2, 3) != 2) return Fail;
if (Clamp(4, 2, 10) != 4) return Fail;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System.Collections;
using System.Collections.Generic;
using System.Resources;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
RetSt2 r = new Test("Lock").foo(-1);
Console.WriteLine("r._key: " + r._key);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class Program
{
static ushort SkillLevel;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
SkillLevel = 0x2121;
SkillLevel = (ushort)((byte)SkillLevel ^ 0x21);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
return s;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return (Test(LongEnum.Option0) == "Option0") ? 100 : 1;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>False</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Collections.Generic;
+using Xunit;
public static class Program
{
return result;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return GetCustomAttribute<Attribute>(new PropertyInfo()) != null ? 100 : -1;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
+using Xunit;
namespace VectorWiden
{
private static string _asciiString = new string('\0', _asciiBytes.Length);
private static string compareString = "text/plain,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7";
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
fixed (byte* pBytes = &_asciiBytes[0])
fixed (char* pString = _asciiString)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_13735
{
Print(h);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
SampleA();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
.assembly extern mscorlib { auto }
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly GitHub_13822
{
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.InteropServices;
+using Xunit;
// Represents a problem with contained nodes chains, that contain lclVar reads, that were moved through lclVar stores.
// Notice that the project file sets DOTNET_JitStressModeNames.
return result;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
AA.reset();
int result;
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType />
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Test to make sure we can compute correct loop nest even in the face
// of loop compaction.
return result;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Node head = new Node { value = 6, next = new Node { value = 13, next = new Node { value = 5, next = null } } };
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Numerics;
+using Xunit;
public class GitHub_10215
{
[MethodImpl(MethodImplOptions.NoInlining)]
static bool Test(Vector<int> x, Vector<int> y) => x[0] == y[0];
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = 100;
Vector<int> X0 = new Vector<int>(0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// `null` to write `m_rightChild` in, that caused a runtime exception.
-.assembly extern System.Runtime {auto}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly GitHub_14455 {}
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// When the implicit tail call optimization
// was done inside inlinee with several returns, the compiler created a return spill
return B(x);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
string v = A("Hello");
return v.Length + 95;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// when the stloc truncates.
.assembly extern mscorlib {auto}
+.assembly extern xunit.core {}
.assembly extern System.Console {auto}
.assembly GitHub_14784 {}
{
.method public hidebysig static int32 Main () cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.maxstack 8
.entrypoint
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Codegen bug when propagating an int cast through
// a long shift. Tests below have known and unknown
return (UInt32)((1UL << q) - 1);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
UInt32 r64 = G64();
UInt32 r63 = G63();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System.Globalization;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
namespace UnsafeTesting
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float UnsafeAs = LengthSquaredUnsafeAs();
Console.WriteLine($"Unsafe.As : {UnsafeAs}");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
// Same test cases as in GitHub_15077, but without the extra
// and masking done by CSC.
.assembly extern System.Console { auto }
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern mscorlib { auto }
.assembly 'GitHub_15291' {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Linq;
+using Xunit;
// Bug where interacting CSEs of N - Old.Length and Old.Length
// were not handled properly in optCSE
public class P
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var ar = new double[]
{
return (int)ar[4];
}
- public static void FillTo1(ref double[] dd, int N)
+ internal static void FillTo1(ref double[] dd, int N)
{
if (dd.Length >= N)
return;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// Test for remorphing subexpressions in casts of long shifts.
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern mscorlib { auto }
.assembly GitHub_15319_1 {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var map = new Dictionary<string, bool?> { { "foo", true } };
return (Test(map) == true) ? 100 : 1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public struct float4
{
return test[i];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float v0 = P(0);
float v1 = P(1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public struct float4
{
return E(ref test.x, i);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float v0 = P(0);
float v1 = P(1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public struct float4
{
return Unsafe.Add(ref p, i);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
float v0 = P(0);
float v1 = P(1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System.Globalization;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
namespace UnsafeTesting
{
}
return true;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (QuaternionAddTest())
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class GitHub_16377
{
return new Tuple<T1, T2, T3, T4, T5, T6, T7, TRest>(item1, item2, item3, item4, item5, item6, item7, rest);
}
- public static void AssertEqual(string s1, string s2)
+ internal static void AssertEqual(string s1, string s2)
{
if (!s1.Equals(s2))
{
}
}
- static void Test()
+ internal static void Test()
{
{
var vtWithNull = CreateLong(1, 2, 3, 4, 5, 6, 7, new ValueTuple<string>(null));
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 0;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
public class Program
{
public vec2(float x, float y) => value = new Vector2(x, y);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var a = new vec2(0.42f, 0.24f);
var b = new vec2(0.42f, 0.24f);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>False</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int expected = BitConverter.IsLittleEndian ? 0x78563412 : 0x12345678;
int actual = Test();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
//
// Test case for a GC Stress 4 failure
//
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Program prog = new Program();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Having an UnsafeValueTypeAttribute on a struct causes incoming arguments to be
// spilled into shadow copies and the struct promotion optimization does not
return sum;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
long testResult = 0;
int mainResult = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
// The fix is to always generate explicit null check before calling VSD with tail call from tail call frame.
-.assembly extern System.Runtime
-{
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Runtime.Extensions
{
}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
namespace Repro
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = Test( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
<PropertyGroup>
<!-- Needed for GCStressIncompatible -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<!-- Timeout on Arm64 -->
<GCStressIncompatible>true</GCStressIncompatible>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib { auto }
+.assembly extern xunit.core {}
.assembly extern System.Console {auto}
.assembly 'GitHub_17969' { }
.class public auto ansi beforefieldinit Test
extends [mscorlib]System.Object
{
- .method public assembly static unmanagedexp int32
+ .method public static unmanagedexp int32
main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.vtentry 11 : 1
// Code size 131 (0x83)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using System.Numerics;
+using Xunit;
// GitHub18043: ensure dead box optimizations treat Vector<float> as a struct type.
return Array.IndexOf(a, f);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int r1 = VT();
return (r1 == 5 ? 100 : 0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
#pragma warning disable
using System;
+using Xunit;
public class testout1
{
static bool static_field_bool;
return (True_Sum * 2) - False_Sum;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int Sum = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
+using Xunit;
public class GitHub_18144
{
dummy128(vA, vB, vC, vD, vE, vF, vG, vH);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Test cases for issues with optVNConstantPropOnTree/optPrepareTreeForReplacement/gtExtractSideEffList.
static int[,] s_1 = new int[1, 1] { { 42 } };
static ushort[,] s_2 = new ushort[,] { { 0 } };
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (!Test1() || (s_1[0, 0] != 0))
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
class C0
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
C0 var0 = new C0 { F = -1 };
// The JIT was giving (byte)var0.F the same value number as the -1 assigned
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
struct S0
{
public uint F0;
public class Program
{
static uint s_0;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S0 vr3 = new S0();
vr3.F0 = 0x10001;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Regression tests for bugs in fgMorphCast and optNarrowTree.
public static class GitHub_18238
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool passed = true;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Test case for https://github.com/dotnet/coreclr/issues/18259
//
public class Program
{
static S2[] s_11 = new S2[]{new S2(new S1(1234u))}; // Assigns 1234 to F1.F0
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ref S1 vr7 = ref s_11[0].F1;
vr7.F0 = vr7.F0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// before the jump, but if this statement has unconditional throw call, then
// it tries to remove the jump during its optimization.
-.assembly extern System.Runtime
-{
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Runtime.Extensions
{
}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
+using Xunit;
internal class Foo : IDisposable
{
return "wobble";
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
string expected = "wobble";
string actual = Aargh();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
// This is a struct that will be passed as a split struct
struct S
}
}
- public static void Conjugate(double real, double imaginary)
+ internal static void Conjugate(double real, double imaginary)
{
int returnVal = 100;
}
[MethodImpl(MethodImplOptions.NoOptimization)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType />
using System.Reflection;
using System.Threading;
using System.Runtime.CompilerServices;
+using Xunit;
class MetadataReader
{
return (method.Flags != (MethodAttributes)0) ? new object() : null;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
MetadataReader r = new MetadataReader();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public struct SequentialStruct
{
return 100;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
SequentialStruct ss = new SequentialStruct();
ss.f0 = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
struct S
{
return Sum(sLocal);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool pass = true;
sStatic.v1 = new Vector<float>(0.0F);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Based on a program generated by Fuzzlyn
// incorrectly typing the return type from M113, and so
// inadvertently overwriting the F1 field of s_36 on return from
// the (inlined) call.
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_36.F1 = 0xAA;
s_36.F0 = M113();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Based on
// Original generated by Fuzzlyn on 2018-06-20 00:58:58
{
static S1 s_6;
static S1[] s_13 = new S1[]{new S1(-1)};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// When generating code for the x64 SysV ABI, the jit was
// incorrectly typing the return type from M16, and so
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Based on
// Original generated by Fuzzlyn on 2018-06-20 00:58:58
{
static S1 s_6;
static S1[] s_13 = new S1[]{new S1(-1)};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// When generating code for the x64 SysV ABI, the jit was
// incorrectly typing the return type from M16, and so
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Based on
// Original generated by Fuzzlyn on 2018-06-20 00:58:58
{
static S1 s_6;
static S1[] s_13 = new S1[]{new S1(-1)};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// When generating code for the x64 SysV ABI, the jit was
// incorrectly typing the return type from M16, and so
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Based on
// Original generated by Fuzzlyn on 2018-06-20 00:58:58
{
static S1 s_6;
static S1[] s_13 = new S1[]{new S1(-1)};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// When generating code for the x64 SysV ABI, the jit was
// incorrectly typing the return type from M16, and so
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Based on
// Original generated by Fuzzlyn on 2018-06-20 00:58:58
{
static S1 s_6;
static S1[] s_13 = new S1[]{new S1(-1)};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// When generating code for the x64 SysV ABI, the jit was
// incorrectly typing the return type from M16, and so
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Based on
// Original generated by Fuzzlyn on 2018-06-20 00:58:58
{
static S1 s_6;
static S1[] s_13 = new S1[]{new S1(-1)};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// When generating code for the x64 SysV ABI, the jit was
// incorrectly typing the return type from M16, and so
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Based on
// Original generated by Fuzzlyn on 2018-06-20 00:58:58
{
static S1 s_6;
static S1[] s_13 = new S1[]{new S1(-1)};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// When generating code for the x64 SysV ABI, the jit was
// incorrectly typing the return type from M16, and so
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Based on
// Original generated by Fuzzlyn on 2018-06-20 00:58:58
{
static S1 s_6;
static S1[] s_13 = new S1[]{new S1(-1)};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// When generating code for the x64 SysV ABI, the jit was
// incorrectly typing the return type from M16, and so
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class C
{
public static class GitHub_18542
{
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void ViaClass()
+ internal static void ViaClass()
{
var c = new C();
c.M();
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void ViaStruct1()
+ internal static void ViaStruct1()
{
var s1 = new S1(new C());
s1.M();
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void ViaStruct2()
+ internal static void ViaStruct2()
{
var s2 = new S2(new S1(new C()));
s2.M();
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void ViaStruct3()
+ internal static void ViaStruct3()
{
var s3 = new S3(new S2(new S1(new C())));
s3.M();
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void ViaStruct4()
+ internal static void ViaStruct4()
{
var s4 = new S4(new S3(new S2(new S1(new C()))));
s4.M();
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void ViaStruct5()
+ internal static void ViaStruct5()
{
var s5 = new S5(new S4(new S3(new S2(new S1(new C())))));
s5.M();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ViaClass();
ViaStruct1();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
// Repro for issue fixed 18582 (also seein in 23309) -- stack overflow when remorphing
// call with a lot of arguments and some CSEs when running with limited stack (as is
[MethodImpl(MethodImplOptions.NoInlining)]
static int q() => s_x + 1;
- public static void Test()
+ internal static void Test()
{
int z = s_x;
Consume(
static int s_x;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_x = 1;
int expected = 8;
<PropertyGroup>
<!-- Needed for JitOptimizationSensitive -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
struct S4
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S4 s4 = new S4();
S24 s24 = new S24(1, s4);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return (Test1.Run() & Test2.Run() & Test3.Run()) ? 100 : -1;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_18780
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool ok = true;
ok &= M1(0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
interface IRT
{
static int s_3;
static short[] s_8 = new short[] { -1 };
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_rt = new CRT();
M11(s_8, 0, 0, 0, true, s_1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Specialized;
using System.Runtime.CompilerServices;
+using Xunit;
public static class GitHub_18884
{
static long s_5;
static int returnVal = 100;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_3 = 0; // avoid runtime checks in M15
ReproWindows(0, 0, 1, 0);
return returnVal;
}
- static void ReproWindows(byte arg0, long arg1, ushort arg2, ulong arg3)
+ internal static void ReproWindows(byte arg0, long arg1, ushort arg2, ulong arg3)
{
s_5 >>= 50 / arg2; // the value shifted by here
if (arg0 != 0)
returnVal = -1;
}
}
- static void ReproUx(ulong arg0, long arg1, ushort arg2, byte arg3)
+
+ internal static void ReproUx(ulong arg0, long arg1, ushort arg2, byte arg3)
{
s_5 >>= 50 / arg2; // the value shifted by here
if (arg3 != 0)
returnVal = -1;
}
}
+
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void CheckValue(int value, int expectedValue)
+ internal static void CheckValue(int value, int expectedValue)
{
if (value != expectedValue)
{
}
// While fixing the above failures, this test (from corefx) failed.
- public static void Set_Mask_AllTest()
+ internal static void Set_Mask_AllTest()
{
BitVector32 flip = new BitVector32();
int mask = 0;
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType />
using System;
using System.Threading;
using System.Runtime.CompilerServices;
+using Xunit;
internal class BufferState
{
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public void ThrowIfDisposed()
+ internal void ThrowIfDisposed()
{
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public void QueueCurrentBufferForUploadAndSetNewBuffer()
+ internal void QueueCurrentBufferForUploadAndSetNewBuffer()
{
}
- public void Test()
+ internal void Test()
{
this.ThrowIfDisposed();
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Program p = new Program();
if (p.currentState.IsIdle)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
namespace JitCrashPOC
{
{
static public int s_res;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var map = new ItemRunner();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using System.Text;
+using Xunit;
unsafe struct CommandBytes : IEquatable<CommandBytes>
{
public static class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var lookup = new Dictionary<CommandBytes, string>();
void Add(string val)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Optimize>True</Optimize>
using System;
using System.Threading;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_19171
{
public static long g_static = -1;
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void Function(long value)
+ internal static void Function(long value)
{
g_static = value;
returnVal = -1;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Function(7);
Function(11);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
public class GitHub_19171
{
static int returnVal = 100;
- static public void Vector3EqualsTest()
+ static internal void Vector3EqualsTest()
{
Vector3 a = new Vector3(1.0f, 2.0f, 3.0f);
Vector3 b = new Vector3(1.0f, 2.0f, 3.0f);
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Vector3EqualsTest();
return returnVal;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// since a final method can be overridden by an explicit .override
.assembly extern mscorlib { auto }
+.assembly extern xunit.core {}
.assembly GitHub_19222 { }
.class public auto ansi Test_GitHub_19222 extends [mscorlib] System.Object {
-.method public assembly static int32 modopt([mscorlib]System.Runtime.CompilerServices.CallConvCdecl)
+.method public static int32 modopt([mscorlib]System.Runtime.CompilerServices.CallConvCdecl)
main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 2
.locals ([0] class C c)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
// This test exposed a bug with the ordering of evaluation of a cpblk.
+using Xunit;
struct S0
{
public long F0;
return ref s_37;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
M7() = s_13.F5;
return checkValue(s_37.F0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
struct S2
static S2 s_one = new S2(1);
static S2 s_two = new S2(2);
static uint sum = 0;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
M28(s_two, M28(s_one, s_one));
return sum == 3 ? 100 : -1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// The test showed an incorrect optimization of (int)(long<<32+) when the const 32+ tree
// had side effects.
return 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int vr0 = (int)((ulong)M1() << 33) / s_1.F6;
if (result == 100)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_19288
{
return 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
+using Xunit;
namespace Repro
{
return list;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine("Starting stress loop");
var compositeSources = GetCompositeSources();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// This is a regression test for a bug that was exposed with jitStressRegs=8 in
// System.Text.ConsoleEncoding::GetMaxByteCount, due to the lack of handling
{
return(0x0101010101010101L);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
long value = getValue();
Console.WriteLine($"Result is {value}");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System.Runtime.CompilerServices;
using System.Collections.Generic;
using System.Diagnostics;
+using Xunit;
// This test executes the same computation on a wrapped Vector4 ('float4') and a
// (not wrapped) Vector4. The code should be similar.
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
const int iterationCount = 10;
const int itemCount = 1000000;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// included in IsIPInMarkedJitHelper on non-32-bit-x86 platforms.
using System;
+using Xunit;
class C0
{
static S3 s_1;
static C3 s_2;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// to analyze a bounds check.
using System;
+using Xunit;
public struct MyStruct
{
public class GitHub_19454
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
MyReader r = new MyReader();
r.ReadBytesInner(0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Collections.Generic;
+using Xunit;
// Test derived from dotnet/corefx src\System.Numerics.Vectors\src\System\Numerics\Matrix4x4.cs, op_Multiply().
// This was an ARM32-specific bug for addressing local variables as floats. ARM32 floating-point instructions
M41, M42, M43, M44);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Matrix4x4 m1 = new Matrix4x4(1.0F,2.0F,3.0F,4.0F,
5.0F,6.0F,7.0F,8.0F,
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
using System.Threading;
+using Xunit;
// Test folding of addressing expressions
return returnVal;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S s = new S();
Vector128<float> v = Vector128.Create(1.0F);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
using System.Threading;
+using Xunit;
// Check for proper stack spilling in the presence of assignment-like nodes.
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return 100 +
(Test1.Run() == 0 ? 0 : 1) +
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
struct S0
{
static S0 s_2;
static long s_5;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_2.F0 = 128;
M7(s_2);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public class GitHub_19601
{
static ushort s_2;
static short[] s_5 = new short[]{1};
static ulong s_8;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var vr2 = s_5[0];
M9();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public static class GitHub_19674
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = 100;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
using System.Runtime.CompilerServices;
+using Xunit;
namespace GitHub_19910
{
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Sse2.IsSupported)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_2003
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byteArray = new byte[100];
myByteArray = new MyByte[100];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// GitHub 20040: operand ordering bug with GT_INDEX_ADDR
// Requires minopts/tier0 to repro
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var array = new byte[] {0x00, 0x01};
var reader = new BinaryTokenStreamReader(array);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
// GitHub 20211: bug with lowering SIMDIntrinsicGetItem on ARM64
// when INS_mov (move w/o sign-extension) was used to copy signed value
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (new TestRunner().Run() == Result.Pass)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Globalization;
using System.Numerics;
+using Xunit;
namespace GitHub_20260
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// The jit will devirtualize the call to ToString and then undo the box.
// Make sure that happens properly for vectors.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Numerics;
+using Xunit;
namespace GitHub_20269
{
public class Program
{
static int i;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
i = 1;
return (int)new Program().GetVector()[0] + 99;
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void DoNothing(ref int i)
+ internal static void DoNothing(ref int i)
{
}
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
struct S
{
[MethodImpl(MethodImplOptions.NoInlining | MethodImplOptions.Synchronized)]
S G() => z.F();
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = Test();
if (result == 100) {
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// In this example, in Der1:M during tail call Caller arg6 points to the same location as Callee arg6
// (which is null) and causes NullReferenceException.
-.assembly extern System.Runtime
-{
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly GitHub_20625
{
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class X
{
}
// Ensure GTF_CALL flag is propagated to MD array accessor
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int c = G()[0,0].GetHashCode();
int v = s.GetHashCode();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
// GitHub 20657:
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var v1 = new Vector4();
var v2 = Oops(v1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime { }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console { }
.assembly GitHub_20799 { }
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Test case for fix 20838
// We are a missing check for ZeroOffsetFldSeq values on LclVar reads
return true;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool isPassing = true;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Test case for https://github.com/dotnet/coreclr/issues/21231
//
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var vr22 = new S1[]{new S1(new S0(1))};
S1 vr26;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Test case for https://github.com/dotnet/coreclr/issues/21231
//
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var vr22 = new S2[]{new S2(new S0(1))};
S2 vr26;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
class B
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
static B G() => p ? GD() : GB();
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
p = false;
// After inlining G(), the jit must not update
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.CompilerServices;
using Point = System.Numerics.Vector2;
+using Xunit;
namespace GitHub_21546
{
);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
returnVal = 100;
Random random = new Random(Seed);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
+using Xunit;
namespace GitHub_21625
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ushort value = TestLibrary.Generator.GetUInt16();
Vector128<ushort> result = CreateScalar(value);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime { }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Numerics.Vectors { }
.assembly GitHub_21761 { }
.assembly extern xunit.core {}
ret
}
+.class public auto ansi Test
+{
.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
ldc.i4 1
ret
}
+}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Numerics;
using Point = System.Numerics.Vector2;
+using Xunit;
namespace GitHub_21854
{
public class test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try {
var unused = new object[] { Vector<int>.Zero };
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Some tests for removing bounds checks based
// on byte and sbyte-based indices
return NeedsEscapingByte256(data[i] + 127);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ReadOnlySpan<byte> bytes = new byte[] { 2, 3 };
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Test to stress FP-relative addressing of generics context slot on ARM64. "str" instruction has a 32760 byte offset limit.
// And normally, the frame pointer is at the bottom of the frame and the stored generics context at the top. If the locals
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void SetStructValue(ref S s)
+ internal static void SetStructValue(ref S s)
{
s.i9782 = 17;
}
return (s.i9782 - 16) * x * TestGenericContext<GenericClass<T>>(x - 1);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
const int Pass = 100;
const int Fail = -1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class X
{
// No-opt to stop F from being inlined without marking it noinline
[MethodImpl(MethodImplOptions.NoOptimization)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = F(0, 1, Guid.Empty, 3, 4, 33, 67);
Console.WriteLine($"Result={result}");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Test_GitHub_22556
{
this.f = f;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.InteropServices;
+using Xunit;
// Test case where a type-equvalent delegate is assigned
{
static int F() => 3;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
XD x = F;
XD y = Lib.GetDelegate();
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<!-- Test unsupported outside of windows (type equivalence) -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Repro for https://github.com/dotnet/coreclr/issues/22820.
// On x86 we need to report enclosed handler
return new DisposableObject();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
+using Xunit;
public static class GitHub_22850
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return test128((byte)90) ? 100 : -1;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>False</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
-.assembly extern System.Runtime { }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console
{
}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
+using Xunit;
public static class GitHub_23159
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var str = "application/json,text/html;q=0.9,application/xhtml+xml;q=0.9,application/xml;q=0.8,*/*;q=0.7";
var span = Encoding.ASCII.GetBytes(str).AsSpan();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
// The GC infra has to correctly mark registers with pointers as alive and must not report registers without pointers.
using nint = System.Int32;
+using Xunit;
namespace GitHub_23199_32Bit
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
TestCrossgenedReturnWith2PointersStruct();
TestTwoPointers();
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
// The GC infra has to correctly mark registers with pointers as alive and must not report registers without pointers.
using nint = System.Int64;
+using Xunit;
namespace GitHub_23199_64Bit
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
TestCrossgenedReturnWith2PointersStruct();
TestTwoPointers();
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime { }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Console { }
.assembly extern System.Globalization { }
.assembly GitHub_23411
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Diagnostics;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
+using Xunit;
namespace GitHub_23530
{
return Sse.Add(c, d).ToScalar();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Fma.IsSupported)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Collections.Generic;
+using Xunit;
namespace GitHub_23545
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int value = 0;
foreach (var e in StructKeyValue)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_23739
{
Sink(ref l3);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Cls1f cls1f = new Cls1f();
Test1f(cls1f);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// The jit should null check 'this' in NextElement
[MethodImpl(MethodImplOptions.NoInlining)]
byte NextElement(int i) => A[1+i];
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = -1;
GitHub_23791* x = null;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public class Program
{
public uint i3;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S s = new S();
s.i0 = 0x12345678;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Numerics;
+using Xunit;
namespace GitHub_23861
{
public class Program
{
static int returnVal = 100;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
LessThanAllDouble();
return returnVal;
}
- public static void LessThanAllDouble() { TestVectorLessThanAll<double>(); }
+ internal static void LessThanAllDouble() { TestVectorLessThanAll<double>(); }
private static void TestVectorLessThanAll<T>() where T : struct, INumber<T>
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Numerics;
+using Xunit;
public class GitHub_23885
{
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib {}
+.assembly extern xunit.core {}
.assembly 'GitHub_23950' {}
.method public hidebysig static
int32 Main () cil managed
{
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.maxstack 1
.entrypoint
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// The jit should correctly import get struct address as a first statement during the importation phase.
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace GitHub_24159
{
{
static int i;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
i = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Threading;
using System.Threading.Tasks;
+using Xunit;
// The test shows recursive assertion propagation in one statement.
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Test removal of a dead struct assignment when the assignment is "internal"
// i.e., is not a direct child of a statement node.
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
GetStruct(1);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime { }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly GitHub_24278 { }
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_24657
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = 100;
var array = new [] { new TestStruct(123), new TestStruct(456) };
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
unsafe public class GitHub_24846
{
- public static void TestCopy(byte* destination, byte* source)
+ internal static void TestCopy(byte* destination, byte* source)
{
Unsafe.CopyBlockUnaligned(destination, source, 0);
}
- public static void TestInit(byte* destination)
+ internal static void TestInit(byte* destination)
{
Unsafe.InitBlockUnaligned(destination, 0xff, 0);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = 100;
var destination = new byte[1];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Reflection;
using System.Reflection.Emit;
+using Xunit;
namespace GitHub_25020
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
DynamicMethod dm = new DynamicMethod("MyMethod", typeof(string), new Type[] { typeof(string), typeof(string) });
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// GitHub 25027: Tail call stress shouldn't cause asserts
// in the presence of invalid IL
-.assembly extern System.Runtime { auto }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern mscorlib { auto }
.assembly GitHub_25027 {}
.assembly extern xunit.core {}
<PropertyGroup>
<!-- Needed for CrossGenTest -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CrossGenTest>false</CrossGenTest>
</PropertyGroup>
<PropertyGroup>
using System.Runtime.Intrinsics.X86;
using static System.Runtime.Intrinsics.X86.Avx;
using static System.Runtime.Intrinsics.X86.Avx2;
+using Xunit;
public class GitHub_25039
{
return ConvertToVector256Int32(pBase + pvbyte * 8);
}
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
if (System.Runtime.Intrinsics.X86.Avx2.IsSupported)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool failed = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Issue https://github.com/dotnet/coreclr/issues/2580 fix description
//
// The changes fix a bug generating 16-bit signed comparison code to
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
System.Console.WriteLine(".NET 4.6.01055 bug repro: unshort comparison below incorrectly outputs False (only) when code is optimized");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public struct MyValue
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
MyValue p1 = new MyValue(10);
MyValue p2 = new MyValue(20);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The test reproduces an issue with tail call via slow helper to VSD stub over generic interface.
-.assembly extern System.Runtime {}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Diagnostics.Debug {}
.assembly extern System.Console {}
.assembly GitHub_26311 {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_26417
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 100;
try {
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
{
}
-.assembly extern System.Runtime
-{
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Runtime.Intrinsics
{
<Project Sdk="Microsoft.NET.Sdk.IL">
- <PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
<ItemGroup>
<Compile Include="GitHub_26491.il" />
</ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public struct S
{
{
public S s;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// Test that the correct exception is thrown from Run.
// The bug was that the exceptions were reordered and DivideByZeroException
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
struct S
{
return s.i;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Program p = new Program();
p.t.s.i = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// initblk is expected to use only the low byte of the initialization value that's on the stack
-.assembly extern System.Runtime {}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly GitHub_27169 {}
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_27279
{
- public unsafe static int Main()
+ [Fact]
+ public unsafe static int TestEntryPoint()
{
bool res = Unsafe.IsAddressLessThan(ref Unsafe.AsRef<byte>((void*)(-1)), ref Unsafe.AsRef<byte>((void*)(1)));
Console.WriteLine(res.ToString());
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Vector3 v3 = Test1(new Vector4(1, 2, 3, 4));
if (v3.X != 1 || v3.Y != 2 || v3.Z != 3)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Numerics;
using System.Runtime.Intrinsics;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_27551
{
ValidateResult(value, result);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Vector256<Byte> value = Vector256.Create((byte)GetByte());
Test(value);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// pop {r10,lr}
// bx jumpAddress
-.assembly extern System.Runtime {}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Diagnostics.Debug {}
.assembly GitHub_27678 {}
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Writer
{
return new ArraySegment<byte>(data, 0, writer.Position);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var x = Test();
return x[0];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.CompilerServices;
using System.Collections.Generic;
using System.Threading.Tasks;
+using Xunit;
public class Program
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
for(int i = 0; i < s.Length; i++) s[i] = new byte[2];
<PropertyGroup>
<!-- Needed for CLRTestBatchEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class Program
{
// We don't have a good way to tell if the CLR is compiled by clang or VC++, so we simply allow
// both answers.
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ulong u64 = 0x84595161401484A0UL;
double f64 = (double)u64;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// This tests a calli with explicit this in the signature
-.assembly extern System.Runtime {}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly GitHub_35384 {}
.assembly extern xunit.core {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace GitHub_19910
public class BasicReadWriteBenchmarkBgr : BasicReadWriteBenchmark<Bgr> { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Metadata version: v4.0.30319
-.assembly extern System.Runtime
-{
- .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
- .ver 5:0:0:0
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Runtime.Intrinsics
{
.publickeytoken = (CC 7B 13 FF CD 2D DD 51 ) // .{...-.Q
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Program p = new Program();
p.NarrowDouble();
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public void NarrowDouble()
+ internal void NarrowDouble()
{
// GenerateSource1 and GenerateSource2 methods are needed to exercise the bug code path.
double[] source1 = GenerateSource1();
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType />
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_36905
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool success = true;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public struct TwoBools
{
public class Test_GitHub_37666
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Diagnostics;
+using Xunit;
public class Runtime_39823
{
}
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class C
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int error = Test1();
error += Test2();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
+using Xunit;
namespace Issue_4115
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
MainClass mainClass = new MainClass();
mainClass._head = mainClass._tail = new MyClass();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
return x;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
const int Pass = 100;
const int Fail = -1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class GitHub_5556
{
return value;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
long[] a = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
Span<long> mySpan = new Span<long>(a);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
return f;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
const int Pass = 100;
const int Fail = -1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// interaction between CSE and constant prop.
using System;
+using Xunit;
public class Program
{
public static int ii;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int res = 0;
ii = 99;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
const int Pass = 100;
const int Fail = -1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
const int Pass = 100;
const int Fail = -1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
using System.Numerics;
+using Xunit;
namespace N
{
public static class C
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// Regression test for an issue with assertion prop leading
// to the wrong exception being thrown from Vector<T>.CopyTo
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
+using Xunit;
public class TestClass_65690
{
public struct S1
}
}
- public void Method0()
+ internal void Method0()
{
unchecked
{
return;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new TestClass_65690().Method0();
return 100;
}
-}
\ No newline at end of file
+}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
// Note: In below test case, we were skipping the first block that is an alignment candidate,
// but were not unmarking it such. As a result, we would hit assert during backedge setup.
// Found by Antigen
+using Xunit;
public class TestClass_65988
{
public struct S1
S1 s1_33 = new S1();
public decimal LeafMethod3() => 67.1m;
- public void Method0()
+ internal void Method0()
{
unchecked
{
return;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new TestClass_65988().Method0();
return 100;
}
-}
\ No newline at end of file
+}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
// Regression test for failure to maintain FieldSeq annotations in EarlyProp
using System.Runtime.CompilerServices;
+using Xunit;
namespace N
{
return arr[0] + arr[arr.Length];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// needed and because of that we would see mismatch in assigned
// interval for those two registers.
using System;
+using Xunit;
public class Program_67102
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new Func<double, double, Size>(new OrientationBasedMeasures().MinorMajorSize)(1, 2);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// In this issue, although we were not removing an unreachable block, we were removing all the code
// inside it and as such should update the liveness information. Since we were not updating the liveness
// information for such scenarios, we were hitting an assert during register allocation.
+using Xunit;
public class Program
{
public static ulong[] s_14;
public static uint s_34;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var vr2 = new ulong[][]{new ulong[]{0}};
M27(s_34, vr2);
return 100;
}
- public static void M27(uint arg4, ulong[][] arg5)
+ internal static void M27(uint arg4, ulong[][] arg5)
{
arg5[0][0] = arg5[0][0];
for (int var7 = 0; var7 < 1; var7++)
arg4 = arg4;
}
}
-}
\ No newline at end of file
+}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
// In this issue, we were not removing all the unreachable blocks and that led us to expect that
// there should be an IG label for one of the unreachable block, but we were not creating it leading
// to an assert failure.
+using Xunit;
public class _65659_2
{
public static bool[][,] s_2;
public static short[,][] s_8;
public static bool[] s_10;
public static ushort[][] s_29;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool vr1 = M47();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace N
{
return x == y;
}
- public static int Main(string[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
int errors = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Numerics;
+using Xunit;
namespace Test01
{
Console.WriteLine("SIMD Vector3: {0},{1},{2}", c.X, c.Y, c.Z);
return c.X + c.Y + c.Z;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.InteropServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new Program().TestFunction();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Regression test for insufficient guard on inference of initial values
// of induction variables.
using System.Numerics;
+using Xunit;
namespace N
{
public static class C
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int x = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
#pragma warning disable 472
return count;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result0 = new Bug7907().F0(10);
int result1 = new Bug7907().F1(10);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern mscorlib {}
+.assembly extern xunit.core {}
.assembly 'GitHub_8133' {}
// The original repro for this test was SBCG due to incorrect computation of value numbers for the ref-typed locals
.method public hidebysig static int32 RefAdd() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.locals init (
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
// This test checks for proper behavior w.r.t. overflow for expressions of the form `val % constant` where `val` is an
// unsigned long and `constant` is a 32- or 64-bit integer constant in the range [2,0x3fffffff]. These expressions
return (uint)(l % 10000000);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return M(ulong.MaxValue) == 9551615 ? 100 : 101;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Numerics;
+using Xunit;
namespace Test
{
return 100;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnValue = 100;
Console.WriteLine("Testing Dot Product");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
namespace N
{
return s;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = Test();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
namespace bug
{
// 'test' instruction incorrectly, because shift
// operations on xarch don't modify flags if the
// shift count is zero.
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// Absolute bits
int bitCount = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// TreeNodeInfoInitCmp attempts to eliminate the cast from cmp(cast<ubyte>(x), icon)
// by narrowing the compare to ubyte. This should only happen if the constant fits in
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if ((byte)GetValue() > 300)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.class public FinallyReimp
{
-.method public static int32 Main(class [mscorlib]System.String[]) cil managed
+.method public static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
+
+ ldc.i4.0
+ newarr [mscorlib]System.String
+ call int32 FinallyReimp::MainX(string[])
+ ret
+}
+
+.method public static int32 MainX(class [mscorlib]System.String[]) cil managed noinlining
+{
.locals init (int32 V0, native int V1)
.try
{
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Tests for moving exits out of loops and ensuring that doing so doesn't
// violate EH clause nesting rules.
return (result == target);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int[] has5 = new int[] { 1, 2, 3, 4, 5 };
int[] no5 = new int[] { 6, 7, 8, 9 };
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Noway assert where an inlinee modified a parameter with index > 16,
// and caller that had few args or locals passed in a constant for
return a20;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
B b = new B();
int v = b.X(1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
struct S0
{
public uint F1;
{
static S0[] s_7 = new S0[] { new S0(0) };
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return (M9(0) == -1) ? 100 : 1;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Collections.Generic;
+using Xunit;
public class Test_Github_21011
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test_Github_21011 test = new Test_Github_21011();
test.GetPair();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
+using Xunit;
public unsafe class ImageSharp_2117
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Sse.IsSupported)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Numerics;
+using Xunit;
public class Performance_2700
{
private static readonly Vector<float> Value2 = Vector<float>.One + Vector<float>.One;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Vector<float> result = Vector.Multiply(Value1, Value2);
return (result == new Vector<float>(2.0f)) ? 100 : 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_1104
{
return sum;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
namespace Runtime_1241
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public class BoundsCheck
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(new byte[7]);
return (int)GetKey(span) + 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_13762
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
// Tests for the contiguous assignments from SIMD to memory
// optimization in morph
Check(v4h, g4X, g4Y, g4Z, g4W);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Vector2 g2 = G2();
Vector3 g3 = G3();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Linq;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
namespace Runtime_31673
{
return Vector4.Clamp(v, Vector4.Zero, Vector4.One);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
-.assembly extern System.Runtime {}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly Runtime_32059 {}
.assembly extern xunit.core {}
.class public auto ansi beforefieldinit Runtime_32059 extends [System.Runtime]System.Object
{
-.method public hidebysig static int32 Main(string[] args) cil managed
+.method public hidebysig static int32 Main() cil managed
{
.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
01 00 00 00
)
.entrypoint
+
+ ldc.i4.0
+ newarr [System.Runtime]System.String
+ call int32 Runtime_32059::MainX(string[])
+ ret
+}
+
+.method public hidebysig static int32 MainX(string[] args) cil managed noinlining
+{
.locals init (valuetype [System.Runtime]System.DateTime V_0)
.maxstack 12
ldarg.0
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
struct RefWrapper
{
return arr[0];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
RefWrapper a = new RefWrapper();
arr = new RefWrapper[1];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
+using Xunit;
public class Program
{
return result;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var result = 100;
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
[StructLayout(LayoutKind.Explicit)]
internal struct FloatNonAlignedFieldWithSmallOffset
public class Test_Runtime_34170
{
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
var a = new FloatNonAlignedFieldWithSmallOffset(1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using ArmAes = System.Runtime.Intrinsics.Arm.Aes;
using X86Aes = System.Runtime.Intrinsics.X86.Aes;
+using Xunit;
public class Runtime_34587
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
TestLibrary.TestFramework.LogInformation("Supported x86 ISAs:");
TestLibrary.TestFramework.LogInformation($" AES: {X86Aes.IsSupported}");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
return a - b * c;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var result = 100;
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType />
using System;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
+using Xunit;
#pragma warning disable 0169 // warning CS0169: The field '{0}' is never used
struct WrappedVector64 { Vector64<byte> _; }
if (((string)o) != "SomeString") throw new Exception();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = 100;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
// SIMD8 could be retyped as a long in the past and if that long value was CSE-ed together with original SIMD8
// values we could hit an assert `IsCompatibleType(cseLclVarTyp, expTyp)`.
return a / b;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test();
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.Arm;
+using Xunit;
public static class Runtime_35976
{
return 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
fo1(1);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
class C0
{
public class Runtime_36468
{
static S1 s_3;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = -1;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Finally cloning creates new throw merge candidates that
// need to be properly counted.
throw new Exception();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
x = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System.Diagnostics;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public class TestStructs
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int b = 1;
int c = 2;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
// The test was showing silence bad codegen for a `LclFldAddr` node under HWINSTRINSIC(IND).
return DoAThingByRef(ref Unsafe.As<Container, Vector<int>>(ref container));
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Vector<int> v1 = TestLclFldAddr();
Vector<int> v2 = TestLclVarAddr();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
// The test was showing some rare cases of `IND(LCL_FLD_ADDR)` under HW intrinsic nodes.
-.assembly extern System.Runtime {}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Runtime.Intrinsics {}
.assembly extern System.Runtime.Extensions {}
.assembly extern System.Numerics.Vectors {}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// Note: you will find below that Caller uses localloc - this is done in order to prevent a call to Caller to be transformed into fast tail call.
// Note: DOTNET_GCStress=3 or DOTNET_GCStress=C are required in order to reliably expose this issue.
-.assembly extern System.Runtime
-{
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly Runtime_39581
{
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
using System;
+using Xunit;
public class Runtime_39403
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Sse41.IsSupported)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System.Diagnostics;
using System.Runtime.Intrinsics;
using System.Security.Cryptography;
+using Xunit;
public class Runtime_40440
{
return UseArrayElementAsCallArgument(v, e);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool f = true;
f &= CheckVectorFloat();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
using System.Threading;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public class Runtime_40444
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool passes_test = false;
bool test_result = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
</PropertyGroup>
.assembly extern System.Console
{
}
-.assembly extern System.Runtime
-{
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly Runtime_40607
{
}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime
-{
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Runtime.CompilerServices.Unsafe
{
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
using System;
using System.Collections.Immutable;
using System.Runtime.CompilerServices;
+using Xunit;
public class X
{
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void E(ImmutableArray<string> a) {}
+ internal static void E(ImmutableArray<string> a) {}
[MethodImpl(MethodImplOptions.NoInlining)]
public static ImmutableArray<string> G() => ImmutableArray<string>.Empty;
return r;
}
- public static int Main() => F();
+ [Fact]
+ public static int TestEntryPoint() => F();
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public class Runtime_42723
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Test(new S { X = 17, Y = 83 });
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>False</Optimize>
</PropertyGroup>
// with an implicit cast, when we substitute the use as the argument in the inlined body
// we should be careful about handling the 'PUTARG_TYPE' node that shows the cast.
-.assembly extern System.Runtime
-{
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Runtime.Extensions
{
}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Block inlining of small localloc callee if call site is in a loop.
using System;
+using Xunit;
public class Runtime_43391
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int r = 58;
for (int i = 1; i >= 0; i--)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
// However, Jit could try to optimize `-` as `+ -CNST_INT` that could lead to an incorrect `long + (-byref)`.
.assembly extern System.Console {}
+.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly 'Runtime_44266' { }
.class public a extends [mscorlib]System.Object
.method public static int32 main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 2
.locals init (class ctest V_1,
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
using System.Runtime.Intrinsics.Arm;
+using Xunit;
namespace IntrinsicsMisoptimizationTest {
- class Program {
+ public class Program {
unsafe static void WriteArray (float* ptr, int count)
{
Console.Write ("[");
return true;
}
- static int Main ()
+ [Fact]
+ public static int TestEntryPoint()
{
bool result = true;
result &= TestXmm_NoCSE();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public struct Text
{
public class Repro
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
string test = "test";
TextProperty t = new TextProperty();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
+using Xunit;
#pragma warning disable CS0649
scenario.VirtMethodEspBasedFrame();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
TestSkipAllocFrame(new PushReg());
TestSkipAllocFrame(new SubSp());
<PropertyGroup>
<!-- Needed for CLRTestBatchEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime
-{
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly Runtime_45250
{
}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Runtime.CompilerServices;
+using Xunit;
namespace Runtime_45557
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ObjectBinderSnapshot o = ObjectBinder.GetSnapshot();
Console.WriteLine($"Test output: {o.SomeValue}");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+using Xunit;
namespace Runtime_46239
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (test<S1>() != 100)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Numerics;
+using Xunit;
public struct S<T>
{
public class Runtime_46240
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Tester<byte>.TestS() != 100)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Test_Runtime_46529
{
[MethodImpl(MethodImplOptions.NoInlining)]
static int Foo(byte* bytes) => (int)(((ulong)bytes[0]) << 56);
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte p = 0xFF;
int result = Foo(&p);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Test for proper ordering of exception-causing ctor args and
// the newobj allocation
{
private static int Throw() => throw new NotSupportedException();
private static bool failed = false;
- public static void Fail() { failed = true; }
+ internal static void Fail() { failed = true; }
private static IDisposable Test()
{
return new Foo(2);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test().Dispose();
GC.Collect();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Test for proper ordering of a gc safepoint inducing arg and
// the newobj allocation
{
static Bar s_bar = new Bar();
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var f = new Foo(s_bar);
return Observer.failed ? -1 : 100;
<PropertyGroup>
<!-- Needed for GCStressIncompatible -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
// Regression test for GitHub issue 49078: https://github.com/dotnet/runtime/issues/49078
//
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test t = new Test();
S16 s = t.Caller(4);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Runtime.CompilerServices;
using System.Numerics;
using System.Diagnostics;
+using Xunit;
public class Runtime_49101
{
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S s;
s.v = Get();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Runtime.CompilerServices;
using System.Numerics;
using System.Diagnostics;
+using Xunit;
namespace Runtime_49489
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Caller();
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace Runtime_51612
{
x.HasEspBasedFrame();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
using System.Runtime.CompilerServices;
using System.Diagnostics;
+using Xunit;
namespace Runtime_52320
{
Unsafe.InitBlock(ref Unsafe.As<int, byte>(ref a), 0, 2);
return a == 1 << 20;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool res = UseAsgOpt(1 << 20);
Debug.Assert(res);
<Project Sdk="Microsoft.NET.Sdk">
- <PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
</ItemGroup>
using System.Runtime.CompilerServices;
using Point = System.Numerics.Vector2;
+using Xunit;
namespace Runtime_52864
{
);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
returnVal = 100;
Random random = new Random(Seed);
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
interface I
{
return G(i.F()) ? 100 : -1;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Runtime_53549 x = new Runtime_53549();
x.z = 100M;
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
using System.Globalization;
using System.Threading;
using System.Runtime.CompilerServices;
+using Xunit;
class A
{
return i;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
A[] a = new A[1000];
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_54100
{
static short s_32;
static short s_33;
static int s_45;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ushort[] vr4 = s_23[0];
return (int)M45();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<DebugType>None</DebugType>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Generated by Fuzzlyn v1.1 on 2021-06-12 11:06:35
// Seed: 8276490119048877745
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S2 vr0 = new S2(new S1(new S0(100)));
int ret = vr0.F0.F0.F3 + vr0.F0.F4.F1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Various tests for memory-dependent loop hoisting
public class Runtime_54118
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
_clsVar = -1;
int result = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Generated by Fuzzlyn v1.2 on 2021-07-22 13:37:14
// Seed: 14815563263006255362
[MethodImpl(MethodImplOptions.NoInlining)]
static int Bound() => 2;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte[] vr7 = new byte[]{0};
bool vr11 = default(bool);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Generated by Fuzzlyn v1.2 on 2021-07-22 13:36:33
// Seed: 11656046881568048475
static bool Eval(byte b) => b == 100;
static ulong[] s_34 = new ulong[]{0};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte[] vr1 = new byte[]{0};
bool result = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
namespace Runtime_54466
{
public class Test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return t(1, 1, 1, 1, Vector2.One, Vector2.One, Vector2.One, Vector2.One);
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
+using Xunit;
namespace Runtime_54647
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var val1 = new Vector64x2();
var val2 = new Vector64x2();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_54842
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
+using Xunit;
public unsafe class Runtime_54956
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool succeeded = true;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace Runtime_55107
{
{
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
G g = new G();
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType />
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_55129
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 100;
if (!Runtime_55129_1.Run())
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_55131
{
static ushort s_6;
static uint[] s_15 = new uint[] { 0 };
static bool s_19 = false;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool condition = False();
int result = 100;
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<DebugType>None</DebugType>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_55140
{
private static int _value;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
_value = 100;
if (TestSubNegNeg() is not 1 and var subNegNeg)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
struct S0
{
// UDIV is lowered to the MULHI/BITCAST nodes and they are stored in field (STORE_LCL_FLD).
// BITCAST is marked as contained so the value to be stored can be used from MULHI, but marking
// the containment of BITCAST is not supported in codegen for STORE_LCL_FLD.
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return (uint)Run(0) == 0 ? 100 : 0;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<DebugType>None</DebugType>
</PropertyGroup>
// Release: Outputs 0
using System.Runtime.CompilerServices;
+using Xunit;
struct S2
{
public class Runtime_55141_2
{
static int s_1;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int vr23 = s_1;
S2 vr29 = new S2(1, (uint)vr23 / 40319);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<DebugType>None</DebugType>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
struct S0
{
public short F0;
public class Runtime_55143
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int value = M47(-1);
return value == 0 ? 100 : 101;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public class Runtime_55253
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int errors = 0;
if (AsInt32() != -1)
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Generated by Fuzzlyn v1.2 on 2021-07-07 08:13:57
// Seed: 11738605779775786426
[MethodImpl(MethodImplOptions.NoInlining)]
static bool Eval(ulong b) => b == 100;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ulong vr1 = 100;
for (int vr2 = 0; vr2 < 0; vr2++)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public class Runtime_56743_0
{
[MethodImpl(MethodImplOptions.NoOptimization)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = Foo(default, default);
return result == 0 ? 100 : -1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_56743_1
{
[MethodImpl(MethodImplOptions.NoOptimization)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = Foo(default);
return result == 0 ? 100 : -1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_56743_2
{
[MethodImpl(MethodImplOptions.NoOptimization)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = Foo(default);
return result == 0 ? 100 : -1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
namespace Runtime_56930
{
{
static C0 s_2 = new C0(1);
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// Since the following statement is a dead store the next two statements will become
// a NULLCHECK(s_2) followed by STOREIND(&s_2[8], 0)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace Runtime_56935
{
{
static int clsFld;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int zeroVal = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class TestClass13
{
// The test exposed a place where we were using uninitialized `gtUseNum` variable.
return s_s3_16;
}
}
- public void Method0()
+ internal void Method0()
{
unchecked
{
return;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
}
return 100;
}
-}
\ No newline at end of file
+}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
using System;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
+using Xunit;
public class Program
{
// 'vlu1' is source as well as destination and want to make sure that
// we do not allocate same register to the src/dest. We need to mark the
// src as 'delayFree'.
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
if (Avx2.IsSupported)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Generated by Fuzzlyn v1.2 on 2021-07-06 09:46:44
// Seed: 16635934940619066544
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S2 vr0 = new S2(new S1(new C0(), new S0(0)));
M17(ref vr0.F0.F2.F4.F1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Reduced from 798.7 KiB to 1.5 KiB in 03:42:20
// Crashes the runtime
using System.Runtime.CompilerServices;
+using Xunit;
struct S0
{
static C1 s_37;
static sbyte s_56;
static S3 s_60;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
uint vr2 = default(uint);
uint vr3;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Reduced from 260.9 KiB to 0.8 KiB in 00:20:16
// Crashes the runtime
using System.Runtime.CompilerServices;
+using Xunit;
struct S0
{
static uint[] s_13;
static sbyte[][] s_110;
static int[] s_111;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_2 = s_2;
return Foo();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Reduced from 235.4 KiB to 1.4 KiB in 00:22:05
// Crashes the runtime
using System.Runtime.CompilerServices;
+using Xunit;
class C0
{
static long s_2;
static S0[][][] s_3;
static S0 s_4;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
C1 vr3 = default(C1);
for (int vr4 = 0; vr4 < Bound(); vr4++)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
struct S
{
public class Runtime_57064
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S val = Create();
val.F0 = 0xF0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Debug: Outputs 0
// Release: Outputs 1
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
static uint s_9 = 1;
static long s_13;
static uint s_15;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_5 = s_5; // Make sure we get no static helpers in function below
M49();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.2 on 2021-08-16 12:59:38
// Run on .NET 6.0.0-dev on X64 Windows
// Seed: 9053537220764489964
return vr0.F5.F0.F1.F0.F1 + vr0.F5.F0.F1.F0.F4;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Test() == 1)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.2 on 2021-08-16 12:56:37
// Run on .NET 6.0.0-dev on X64 Windows
// Seed: 10782465293682251646
return vr4.F1;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Test() == 0)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.2 on 2021-08-09 10:31:59
// Run on .NET 6.0.0-dev on Arm64 Linux
// Seed: 16685661424470671852
{
static short s_2;
static bool s_7;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var vr4 = new ulong[][][][]{new ulong[][][]{new ulong[][]{new ulong[]{0}}}};
int vr9 = 866278096;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_57535
{
static long z;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
z = 10;
int[] a = F();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_57535_1
{
static long z;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
z = 2;
int[] a = F();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_57606
{
return r;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
CompositeTypeMoreThan16Bytes r = ReturnsViaBuffer(1, 2, 3, 4, 5, 6, default(CompositeType16Bytes), __arglist());
return r._2;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.2 on 2021-08-15 23:15:19
// Run on .NET 6.0.0-dev on Arm Linux
// Seed: 18219619158927602726
public class Runtime_57640
{
static long[] s_28 = new long[]{1};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool correct = true;
var vr10 = s_28[0];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.3 on 2021-08-19 15:47:06
// Run on .NET 6.0.0-dev on X64 Windows
// Seed: 16489483397161801783
internal static bool s_33;
internal static bool s_53;
internal static int[][] s_56;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_rt = new C();
var vr9 = new ushort[]{0};
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.3 on 2021-08-23 02:35:43
// Run on .NET 6.0.0-dev on X64 Windows
// Seed: 13788434105727734599
public class Runtime_57752_2
{
internal static ulong s_46;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
M53(ref s_46, ref s_46);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.3 on 2021-08-19 18:34:52
// Run on .NET 6.0.0-dev on X64 Windows
// Seed: 14701429021631883067
{
internal static sbyte s_4;
internal static sbyte[] s_28;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
M101(false);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
[StructLayout(LayoutKind.Sequential)]
internal struct AA
public class Runtime_57912
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return (int)test_0_17(100, new AA(100), new AA(0));
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<DebugType>None</DebugType>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return (Test1() && Test2()) ? 100 : 101;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
// Note: In this repro, we accidently mark a non-EH variable as needing a spill which
// corrupts the value stored on stack. The problem repros only on linux/arm64.
+using Xunit;
class C0
{
public short F0;
internal static ushort[][] s_133 = new ushort[][] { new ushort[] { 0 }, new ushort[] { 0 }, new ushort[] { 0 }, new ushort[] { 1, 1, 1 }, new ushort[] { 0 }, new ushort[] { 0 }, new ushort[] { 0 }, new ushort[] { 0 }, new ushort[] { 0 } };
internal static long[] s_138 = new long[] { 0 };
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_32 = s_32;
M64(new C3(0));
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public unsafe class Runtime_58259
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
M(out _);
return 100;
static delegate* unmanaged<out int, void> _f;
- public static void M(out int index)
+ internal static void M(out int index)
{
if (_f != null)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<CLRTestPriority>1</CLRTestPriority> <!-- This is a regression test for a crossgen only scenario -->
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.4 on 2021-08-24 18:42:34
// Run on .NET 7.0.0-dev on Arm Linux
// Seed: 4314857431407232792
public static S1 s_29;
public static S1[][] s_32 = new S1[][]{new S1[]{new S1(new S0(false), new S0(false), new S0(true))}};
public static I3[][] s_42;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_rt = new C();
var vr3 = s_32[0][0].F3.F2;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_58373
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
short halfValue = HalfToInt16Bits(MakeHalf());
int x = halfValue;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_58373
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// Use up a lot of registers
int a = GetVal();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
public class B
{
}
[MethodImpl(MethodImplOptions.NoOptimization)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var x = new X();
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_58832
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public unsafe class Runtime_58874
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
using EndOfPage endOfPage = EndOfPage.Create();
if (endOfPage != null)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
//
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ushort[] vr3 = new ushort[]{0};
for (int vr4 = 0; vr4 < 2; vr4++)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class Runtime_58972
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
GetItem(new MyStruct[1], 0);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Runtime.CompilerServices;
+using Xunit;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
return s_s2_16;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new Runtime_59298().Method0(out short s);
return s + 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Linq;
-using System.Reflection;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
public const byte Value = 0x50;
- public static int Main()
- {
- int testCount = 0;
- foreach (MethodInfo mi in typeof(Program)
- .GetMethods()
- .Where(m => m.Name.StartsWith("Test")))
- {
- mi.Invoke(null, null);
- testCount++;
- }
-
- return testCount;
- }
-
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test0()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(0));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test1()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(1));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test2()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(2));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test3()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(3));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test4()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(4));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test5()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(5));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test6()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(6));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test7()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(7));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test8()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(8));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test9()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(9));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test10()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(10));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test11()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(11));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test12()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(12));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test13()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(13));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test14()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(14));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test15()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(15));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test16()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(16));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test17()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(17));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test18()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(18));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test19()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(19));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test20()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(20));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test21()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(21));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test22()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(22));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test23()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(23));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test24()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(24));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test25()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(25));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test26()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(26));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test27()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(27));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test28()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(28));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test29()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(29));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test30()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(30));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test31()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(31));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test32()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(32));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test33()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(33));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test34()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(34));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test35()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(35));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test36()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(36));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test37()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(37));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test38()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(38));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test39()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(39));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test40()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(40));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test41()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(41));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test42()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(42));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test43()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(43));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test44()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(44));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test45()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(45));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test46()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(46));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test47()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(47));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test48()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(48));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test49()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(49));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test50()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(50));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test51()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(51));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test52()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(52));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test53()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(53));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test54()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(54));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test55()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(55));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test56()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(56));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test57()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(57));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test58()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(58));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test59()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(59));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test60()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(60));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test61()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(61));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test62()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(62));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test63()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(63));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test64()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(64));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test65()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(65));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test66()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(66));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test67()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(67));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test68()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(68));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test69()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(69));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test70()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(70));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test71()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(71));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test72()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(72));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test73()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(73));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test74()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(74));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test75()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(75));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test76()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(76));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test77()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(77));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test78()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(78));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test79()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(79));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test80()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(80));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test81()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(81));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test82()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(82));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test83()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(83));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test84()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(84));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test85()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(85));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test86()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(86));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test87()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(87));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test88()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(88));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test89()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(89));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test90()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(90));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test91()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(91));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test92()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(92));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test93()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(93));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test94()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(94));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test95()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(95));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test96()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(96));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test97()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(97));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test98()
{
AssertEquals(BitConverter.ToString(bytes), NonUnrolledVersion(98));
}
+ [Fact]
[MethodImpl(MethodImplOptions.NoInlining)]
public static void Test99()
{
throw new InvalidOperationException($"ERROR: {actual} != {expected}");
}
}
-}
\ No newline at end of file
+}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.InteropServices;
+using Xunit;
public class Runtime_59871
{
LargeStruct _large;
Union _field;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Foo(new Runtime_59871());
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Text;
using System.Text.Encodings.Web;
+using Xunit;
namespace Runtime_60035
{
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte[] inputBytes = Encoding.UTF8.GetBytes("https://github.com/dotnet/runtime");
Console.WriteLine(UrlEncoder.Default.FindFirstCharacterToEncodeUtf8(inputBytes));
<PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildProjectName).cs" />
// Seed: 4133580165890247722
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main() => Test(31) == -65538 ? 100 : 0;
+ [Fact]
+ public static int TestEntryPoint() => Test(31) == -65538 ? 100 : 0;
[MethodImpl(MethodImplOptions.NoInlining)]
static int Test(int x) => -(1 << x) / 32767;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public struct S0
{
public class Runtime_60827
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new S0().M21();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace mdarray
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
const int n = 10;
int[,] a = new int[n,n];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2021-11-03 12:55:21
// Run on Arm64 Windows
// Seed: 951014135056301943
public class Runtime_61037
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (0 == (27452 + (-2147483647 * M1())))
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_61045
{
public static byte[] s_1;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
//
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public struct S0
{
public class Runtime_61074
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S0 vr4 = new S0 { F0 = 10, F1 = -1 };
long result = WeirdAnd(vr4);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Debug: Outputs 2
// Release: Outputs 0
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_61077
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Go() == 2 ? 100 : -1;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_61359
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return HalfToInt16Bits((Half)(-1)) == -17408 ? 100 : -1;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_61486
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var my = new My(new My(null));
var m = my.GetType().GetMethod("M");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_61510
{
[FixedAddressValueType]
private static byte s_field;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
ref byte result = ref AddZeroByrefToNativeInt((nint)Unsafe.AsPointer(ref s_field));
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_61629
{
- public static int Main() =>
+ [Fact]
+ public static int TestEntryPoint() =>
Test(100, 200.0) + Test(Math.PI, Math.PI) - 72;
[MethodImpl(MethodImplOptions.NoInlining)]
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public class Runtime_61908
{
public static bool s_3;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var vr6 = M3(s_3);
if (M3(vr6))
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
namespace NormalizeTest
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
{
int result1a = ByteTest1(-1,1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_62108
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_62249
{
return Callee(0, 0, 0, 6, 2, 2, 4, 9, byRef);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var val = new CanBeReinterpretedAsDouble();
val._0 = 62249;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_62524
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem(new() { Value = 1 }) == 1 ? 100 : 101;
}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Text;
+using Xunit;
[StructLayout(LayoutKind.Explicit, Size = 32)]
public readonly unsafe struct SmallString
public static class Program
{
static int result = 0;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var value = new SmallString("foobar");
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void TheTest(SmallString foo)
+ internal static void TheTest(SmallString foo)
{
Execute(foo);
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
using System.Runtime.CompilerServices;
using System;
using System.Runtime.Intrinsics.X86;
+using Xunit;
public unsafe class Runtime_62692
{
[MethodImpl(MethodImplOptions.NoInlining)]
static uint Problem6(uint crc, float data) => Sse42.Crc32(crc, (uint)data);
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Sse42.IsSupported)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>False</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_63354
{
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void Test1(Vector3 v1, ref Vector3 v2)
+ internal static void Test1(Vector3 v1, ref Vector3 v2)
{
v1.X = 100;
v2 = v1;
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void Box(object o) {}
+ internal static void Box(object o) {}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
for (int i = 0; i < 1; i++)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_63610
{
[MethodImpl(MethodImplOptions.NoInlining)]
private static void Callee3() {}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// Make sure it doesn't assert
// https://github.com/dotnet/runtime/issues/63610
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_63905
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
C c = GetNull();
int i = GetOne();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Found by Antigen
public class Runtime_63942
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var _ = 3.14.ToString();
return 100;
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
namespace Runtime_64125
{
return true;
}
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
var anyLocation = new AnyLocation();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_64208
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Method0() != null)
{
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_64375
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var a = new StructWithFloats { FloatOne = 1, FloatThree = 2 };
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_64657
{
T implicitNullcheck = c[x];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (!OperatingSystem.IsWindows())
return 100; // VirtualAlloc is only for Windows
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_64700
{
private static StructWithVtors _structWithVtorsStatic;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
_structWithVtorsStatic = new StructWithVtors { StructWithOneVtor = { OneVtor = new Vector2(1, 0) } };
return t + p2.FirstLngValue;
}
- public static void Use<T>(ref T arg) { }
+ internal static void Use<T>(ref T arg) { }
struct SmallerStruct
{
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
+using Xunit;
public class TestClass
{
public struct S1
return 15|4;
}
}
- public void Method0()
+ internal void Method0()
{
unchecked
{
return;
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
new TestClass().Method0();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2022-02-03 20:05:52
// Run on X64 Linux
public static long[] s_16;
public static bool s_23;
public static int s_result;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_16 = new long[1];
s_rt = new C();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
using System.IO;
using System.Reflection;
using System.Runtime.Loader;
+using Xunit;
public class Runtime_64883
{
public static uint s_29;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// This needs an ALC because the "static access" helper is different in ALCs.
CollectibleALC alc = new CollectibleALC();
return 100;
}
+// Allow reflection lookup on public method
+#pragma warning disable xUnit1013
public static void MainT()
{
long vr7 = 4447329742151181917L;
vr7 /= (vr7 ^ s_29);
uint vr6 = s_29;
}
+#pragma warning restore xUnit1013
private class CollectibleALC : AssemblyLoadContext
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
+using Xunit;
public struct Key
{
public Dictionary<Key, Problem> _d;
[MethodImpl(MethodImplOptions.NoInlining)]
- public void D()
+ internal void D()
{
Problem p = new Problem { s0 = "hello", s1 = "world", x = 33 };
Key k = new Key() { a = 0, s = "a" };
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void F()
+ internal static void F()
{
GC.Collect();
}
return 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var r = new Runtime_65694();
r.D();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_65694_2
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var a = new StructWithObj { Obj = new object() };
var c = new StructWithObj { Obj = new object() };
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public unsafe class Runtime_65937
{
[MethodImpl(MethodImplOptions.NoInlining)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (!OperatingSystem.IsLinux())
{
<PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_65942
{
float unused1 = a[i];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
double d = 0;
Test1(&d, 0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_66089
{
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
int* foo = stackalloc int[30];
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
// Release: Outputs 1
using System.Runtime.CompilerServices;
+using Xunit;
public struct S0
{
public class Runtime_66242
{
public static short s_3;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var vr3 = new S1();
if (vr3.F6.F1 < M4(ref vr3))
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// a jagged array a[i][j].
using System;
+using Xunit;
public class Runtime_66254
{
- public static void t1()
+ internal static void t1()
{
var a = new ValueTuple<int[], int>[]
{
}
}
- public static void t2()
+ internal static void t2()
{
var a = new ValueTuple<int[], int>[]
{
}
}
- public static void t3()
+ internal static void t3()
{
var a = new ValueTuple<int, int[]>[]
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public class Runtime_66269
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem(1) == 2 ? 100 : 101;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_66335
{
private static S0 s_24;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem() == 1 ? 100 : 101;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Debug: Outputs 0
// Release: Outputs 255
using System.Runtime.CompilerServices;
+using Xunit;
public struct S0
{
public class Runtime_66414
{
public static long[] s_3 = new long[]{0};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var vr1 = new S0();
return M5(vr1) == 0 ? 100 : -1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// an interval as spilled.
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public interface I0
{
public static I1 s_64;
public static I0 s_88;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var vr6 = new C0(0, false, 0, 0);
try
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void M52(C0 argThis)
+ internal static void M52(C0 argThis)
{
I1 vr9 = s_18[0][0];
if (argThis.F1)
I1 vr12 = s_18[0][0];
}
}
-}
\ No newline at end of file
+}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public unsafe class Runtime_66585
{
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
GetCaller()(0, 1, 2, 3);
return 100;
}
private static SLarge s_s;
- public static void Caller(int r0, int r1, int r2, int r3)
+ internal static void Caller(int r0, int r1, int r2, int r3)
{
SLarge s = s_s;
Consume(s);
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void Callee(int r0, int r1, int r2, int r3)
+ internal static void Callee(int r0, int r1, int r2, int r3)
{
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2022-03-14 21:20:55
// Run on X64 Windows
// Seed: 16520696696442011600
public static IRuntime s_rt;
public static C0 s_1 = new C0(0, 0, 0);
public static C1[][] s_3 = new C1[][] { new C1[] { new C1(new C0(0, 0, 0)) } };
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
CollectibleALC alc = new CollectibleALC();
System.Reflection.Assembly asm = alc.LoadFromAssemblyPath(System.Reflection.Assembly.GetExecutingAssembly().Location);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_66720
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Test(0);
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
+using Xunit;
public class Runtime_67039
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Vector128<float> left = Vector128.Create(1.0f, 2, 3, 4);
Vector128<float> right = Vector128.Create(4.0f, 3, 2, 1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2022-03-30 08:05:26
// Run on Arm64 MacOS
// Seed: 14607776878871751670
public class Runtime_67331
{
public static short[] s_2 = new short[]{0};
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var vr3 = (uint)s_2[0];
var vr4 = new byte[]{0};
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Buffers.Binary;
+using Xunit;
public class Runtime_67223
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
short[] foo = { short.MinValue };
int test = BinaryPrimitives.ReverseEndianness(foo[0]);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2022-04-13 11:38:00
// Run on X64 Linux
// Seed: 1784259920377383051
{
public static long s_result;
public static IRuntime s_rt;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_rt = new Runtime();
var vr4 = new S0[]{new S0(1)};
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public class Program
{
public static IRuntime s_rt;
public static ulong s_1;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_68479
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem(new Class(), 1, 1) == 1 ? 100 : 101;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
// Metadata version: v4.0.30319
-.assembly extern System.Runtime
-{
- .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
- .ver 7:0:0:0
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
{
.method public hidebysig static int32 Main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
// Code size 79 (0x4f)
.maxstack 2
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_69232
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem(new(1, 1, 1, 1)) ? 101 : 100;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
ref struct NewReference
{
unsafe static NewReference PyLong_FromLongLong(long value) => Delegates.PyLong_FromLongLong(value);
[MethodImpl(MethodImplOptions.NoOptimization)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
for (int i = 0; i < 100; i++)
{
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System.Runtime.Intrinsics;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_69965
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
const int Value = 10;
var vtor = Vector128.Create(Value, Value, Value, Value);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_70124
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem(Vector2.One, Vector2.One) != new Vector2(3, 3) ? 101 : 100;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Metadata version: v4.0.30319
-.assembly extern System.Runtime
-{
- .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
- .ver 7:0:0:0
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
+.assembly extern xunit.core {}
.assembly Runtime_70259
{
}
.method public hidebysig static int32
Main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
// Code size 31 (0x1f)
.maxstack 8
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test();
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void Test()
+ internal static void Test()
{
M1(0);
}
- public static void M1(byte arg0)
+ internal static void M1(byte arg0)
{
long var6 = default(long);
arg0 = (byte)(~(ulong)var6 % 3545460779U);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Release: Outputs 4294967295
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_70333_2
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
uint vr6 = (uint)M50(255);
if (vr6 == 255)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_70466
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Problem(1, 0);
return 100;
}
}
- public static void Use<T>(T arg) { }
+ internal static void Use<T>(T arg) { }
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void JitUse<T>(T arg) { }
+ internal static void JitUse<T>(T arg) { }
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Metadata version: v4.0.30319
-.assembly extern System.Runtime
-{
- .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
- .ver 7:0:0:0
-}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) // .?_....:
.ver 7:0:0:0
}
-.assembly Runtime_70607.dll
+.assembly Runtime_70607
{
}
// MVID: {AC28796A-6A85-4AEA-A696-61332CBEA0D5}
{
.method public hidebysig static int32 Main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
// Code size 46 (0x2e)
.maxstack 2
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_70790
{
private static readonly nint s_intType = typeof(int).TypeHandle.Value;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
RuntimeHelpers.RunClassConstructor(typeof(Runtime_70790).TypeHandle);
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void JitUse<T>(T arg) { }
+ internal static void JitUse<T>(T arg) { }
}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_70824
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
long lng = 2;
float flt = 3;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_70898
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem(default) ? 101 : 100;
}
return (byte)x.Index == 1;
}
- public static void Use<T>(T* arg) where T : unmanaged { }
+ internal static void Use<T>(T* arg) where T : unmanaged { }
struct StructWithIndex
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_70954
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem(default) ? 101 : 100;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_71118
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem(new ClassWithVtor4 { Vtor4FieldTwo = new Vector4(1, 2, 3, 4) }) ? 101 : 100;
}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_71156
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem() ? 101 : 100;
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System.Runtime.Intrinsics;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_71219
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Vector4 vtor = new Vector4(1, 2, 3, 4);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System.Runtime.Intrinsics;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_71375
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// At the time of writing this test, the calling convention for incoming vector parameters on
// Windows ARM64 was broken, so only the fact that "Problem" compiled without asserts was
<!-- The test tests Windows ARM64 Varargs (managed) calling convention -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
<CLRTestTargetUnsupported Condition="'$(TargetArchitecture)' != 'arm64'">true</CLRTestTargetUnsupported>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Threading.Tasks;
+using Xunit;
public class Test
{
return t1.foo == t2.foo;
}
- public static int Main () {
+ [Fact]
+ public static int TestEntryPoint() {
var t1 = new Test () { foo = 1 };
var t2 = new Test () { foo = 2 };
if (t1 == t2)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>0</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public class C0
{
public static S0[] s_3;
public static S1 s_7;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
}
- public static void Test()
+ internal static void Test()
{
ushort[] vr2 = default(ushort[]);
S0 vr3 = default(S0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Debug: Outputs 0
// Release: Outputs 1
using System.Runtime.CompilerServices;
+using Xunit;
public struct S0
{
public static uint s_13;
public static short[] s_28;
public static S0[] s_39;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S0[] vr2 = new S0[]{new S0(-1)};
s_39 = vr2;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_71601
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (ProblemWithPrimitiveSrc())
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
public class Runtime_71611
{
return r;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int[] xs = new int[] { 1, 2, 3, 4 };
I m = new Add();
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_71632
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime { }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
+.assembly extern xunit.core {}
.assembly extern System.Console { }
-.assembly Runtime_71636.dll { }
+.assembly Runtime_71636 { }
.class public Runtime_71636 extends [System.Runtime]System.Object
{
.method public static int32 Main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
call bool Runtime_71636::ProblemWithLdElemA()
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime { }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
+.assembly extern xunit.core {}
.assembly extern System.Console { }
-.assembly Runtime_71638.dll { }
+.assembly Runtime_71638 { }
.class public Runtime_71638 extends [System.Runtime]System.Object
{
.method public static int32 Main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
ldc.i4 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>Full</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
+using Xunit;
public class Runtime_71687
{
// Must be inlined so we end up with null check above
private static void Consume<T>(T value) { }
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test(ref (new byte[10])[0], 5);
Test(ref (new sbyte[10])[0], 5);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_71831
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem(100) ? 101 : 100;
}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_71939
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int v3 = 1;
return Check(0, -v3, Mutate(ref v3));
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
+using Xunit;
public class Runtime_72081
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime { }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
+.assembly extern xunit.core {}
.assembly extern System.Console { }
.assembly extern System.Numerics.Vectors { }
{
.method public static int32 Main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.locals (int32 result)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public unsafe class Runtime_72265
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var unmanaged = ((delegate* unmanaged<StructWithIndex>)&GetStructUnmanaged)();
var managed = GetStructManaged();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
public class Runtime_72363
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var bi = new ListImpl();
for (int i = 0; i < 100; i++)
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
+using Xunit;
public class Runtime_72506
{
private static int retCode = 100;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// float
AssertEqual(Vector256.Create(1f).ToString(), "<1, 1, 1, 1, 1, 1, 1, 1>");
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public static class Runtime_72550
{
private static int retCode = 100;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
IsTrue(Test1.StartsWith1(""));
IsTrue(Test1.StartsWith2(""));
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void IsTrue(bool condition, [CallerLineNumber] int line = 0)
+ internal static void IsTrue(bool condition, [CallerLineNumber] int line = 0)
{
if (!condition)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Debug: Outputs 1286
// Release: Outputs 1464
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
public static ushort s_41 = 1646;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = Foo(0, 0);
return result == 38784 ? 100 : -1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2022-07-24 16:52:25
// Run on X86 Windows
// Seed: 11775672037815743472
public static bool[] s_7;
public static sbyte s_26;
public static S0[] s_44;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
s_7 = new bool[1];
return M71();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Adapted from:
// Fuzzlyn v1.5 on 2022-07-24 15:28:54
public static bool s_43;
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void Test()
+ internal static void Test()
{
try
{
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
public class Runtime_72775
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
for (int i = 0; i < 100; i++)
{
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
<PropertyGroup>
<!-- Needed for GCStressIncompatible -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<NoStandardLib>True</NoStandardLib>
<Noconfig>True</Noconfig>
<Optimize>True</Optimize>
using System;
using System.Runtime.Intrinsics;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_72926
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (CallForLongAsVector64_Zero() != Vector64<double>.Zero)
{
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_73559
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
long value = 0x1234567891011121;
return Verify(*(S8*)&value);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_73628
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem() ? 101 : 100;
}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine(CallFoo(new C()));
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_73804
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
short value = 0x1000;
int r = Problem(&value);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_73821
{
return val2;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Test1(33).F + Test2(67);
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Reflection;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_73951
{
public static ushort s_result;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Problem(new Runtime());
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void Problem(IRuntime rt)
+ internal static void Problem(IRuntime rt)
{
s_rt = rt;
S0 vr21 = s_17.F1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_74117
{
- public unsafe static int Main()
+ [Fact]
+ public unsafe static int TestEntryPoint()
{
byte a = 5;
Problem(ref a, 0);
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void JitUse<T>(T* arg) where T : unmanaged { }
-}
\ No newline at end of file
+ internal static void JitUse<T>(T* arg) where T : unmanaged { }
+}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System.Numerics;
using System.Runtime.Intrinsics;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_74126
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (GetVtor(GetVtor2()) != GetVtor2())
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public class _74373
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Problem(10);
return 100;
return y;
}
- public static unsafe void Use(long* arg) { }
+ internal static unsafe void Use(long* arg) { }
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void JitUse<T>(T arg) { }
-}
\ No newline at end of file
+ internal static void JitUse<T>(T arg) { }
+}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime { }
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
+.assembly extern xunit.core {}
.assembly extern System.Console { }
-.assembly Runtime_74635.dll { }
+.assembly Runtime_74635 { }
#define TRUE "1"
#define FALSE "0"
{
.method public static int32 Main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
call bool .this::ProblemWithDevirtualization()
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
public class _74773 {
static string s_string_16 = "Q57IY";
bool bool_23 = false;
}
}
- public void Method3() {
+ internal void Method3() {
unchecked {
int __loopvar3 = s_loopInvariant;
do {
}
}
- public static int Main() {
+ [Fact]
+ public static int TestEntryPoint() {
new _74773().Method3();
return 100;
}
-}
\ No newline at end of file
+}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_74774
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Problem(new() { FirstLngValue = 1, SecondLngValue = 2 }) != 3 ? 101 : 100;
}
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2022-09-04 15:54:25
// Run on X86 Windows
// Seed: 14105179845188319926
public static int s_10;
public static uint s_13 = 1;
public static int s_19;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S2 vr1 = new S2(-1);
byte r = M17(vr1, M17(vr1.F0.M18(ref s_19, 0), s_4));
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime {}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
+.assembly extern xunit.core {}
.assembly extern System.Runtime.Extensions {}
.assembly extern System.Console {}
.assembly Runtime_75312 {}
.method public hidebysig static
int32 Main () cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 2
.locals init (
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestTargetUnsupported Condition="'$(TargetBits)' != '32'">true</CLRTestTargetUnsupported>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
using System;
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
public class Program
{
private static int s_result;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
C c = new();
for (int i = 0; i < 100; i++)
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
using System;
using System.Runtime.InteropServices;
+using Xunit;
// Verify that the Jit_Patchpoint helper inserted for OSR preserves last error
public class Runtime_75828
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Marshal.SetLastSystemError(42);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_76051
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
GetIndex(1);
return 100;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
using System.Runtime.CompilerServices;
using System.Diagnostics.CodeAnalysis;
+using Xunit;
public unsafe class Runtime_76096
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 100;
if (ProblemWithMemoryNumbering())
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public unsafe class Runtime_76194
{
[MethodImpl(MethodImplOptions.NoInlining)]
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
nuint pageSize = (nuint)Environment.SystemPageSize;
for (int i = 0; i < 100; i++)
<PropertyGroup>
<!-- Needed for CMakeProjectReference -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
// File: D:\a\_work\1\s\src\coreclr\jit\codegenarm64.cpp Line: 4543
//
+using Xunit;
public class C0
{
public int F0;
public static IRuntime s_rt = new Runtime();
public static ulong s_3;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
CollectibleALC alc = new CollectibleALC();
return 100;
}
+// Allow reflection lookup on public method
+#pragma warning disable xUnit1013
public static void MainInner(IRuntime rt)
{
var vr2 = new C0();
M11(vr2, 1);
}
+#pragma warning restore xUnit1013
- public static void M11(C0 argThis, short arg0)
+ internal static void M11(C0 argThis, short arg0)
{
short var0 = default(short);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Program
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = 0;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
// Regression test case for importer bug.
// If Release is inlined into Main, the importer may unsafely re-order trees.
public class Runtime_764
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Ptr<string> ptr = new Ptr<string>("Hello, world");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_77636
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_77640
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = 101;
try
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_77710
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Test(new Derived());
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public unsafe class Runtime_77773
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var s1 = new StructWithField { Field = 1 };
var s2 = new StructWithField { Field = 2 };
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2022-11-04 01:59:14
// Run on Arm64 Linux
// Seed: 4397362897463137173
public static sbyte s_11;
public static uint s_17;
public static short s_18;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool vr6 = default(bool);
M37(s_11, vr6, s_18);
return 100;
}
- public static void M37(sbyte arg0, bool arg1, short arg2)
+ internal static void M37(sbyte arg0, bool arg1, short arg2)
{
s_3 = new long[1];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
using System.Threading;
+using Xunit;
-class Runtime_77968
+public class Runtime_77968
{
private static readonly object o = new ();
return ((int[])o).Length;
}
- private static int Main(string[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
for (int i = 0; i < 100; i++)
{
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// Release: Outputs 1
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public struct S0
{
public class Runtime_78310
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S1 lhs = new S1 { S = { F = 1 }, LastField = 2 };
S1 rhs = new S1 { S = { F = 3 }, LastField = 4 };
}
[MethodImpl(MethodImplOptions.NoInlining)]
- public static void Copy(bool small, ref S1 lhs, S1 rhs)
+ internal static void Copy(bool small, ref S1 lhs, S1 rhs)
{
if (small)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_78554
{
Consume(i);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var arr = new uint[] { 1, 42, 3000 };
ArrayIndexConsume(arr, 0xffffffff);
<PropertyGroup>
<!-- Needed for CLRTestEnvironmentVariable -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Reflection;
+using Xunit;
public interface IGetContents {
(string, int, string) GetContents();
public delegate (string, int, string) MyDelegate(IGetContents arg);
- public static int Main(string[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
MyStruct str = new MyStruct();
str.s1 = "test1";
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.CompilerServices;
+using Xunit;
-class Runtime_79750
+public class Runtime_79750
{
- static int Main(string[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
byte dest = 0;
byte source = 100;
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
-class Runtime_80239
+public class Runtime_80239
{
- static int Main(string[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
Unsafe.SkipInit(out Vector3 test);
test.X = 500.0f;
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Runtime.CompilerServices;
+using Xunit;
-class Runtime_80488
+public class Runtime_80488
{
- static int Main(string[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
int code = Foo(new S16 { F1 = 100 });
if (code != 100)
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
-class Runtime_80616
+public class Runtime_80616
{
- static int Main(string[] args)
+ [Fact]
+ public static int TestEntryPoint()
{
Vector<uint> foo = default;
FooBar(ref foo, default);
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-.assembly extern System.Runtime {}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
+.assembly extern xunit.core {}
.assembly extern System.Console {}
.assembly Runtime_80731 {}
-.class private auto ansi beforefieldinit Runtime_80731
+.class public auto ansi beforefieldinit Runtime_80731
extends [System.Runtime]System.Object
{
.class sequential ansi sealed nested private beforefieldinit S16
.field public int32 D
} // end of class S16
- .method private hidebysig static int32
- Main(string[] args) cil managed
+ .method public hidebysig static int32
+ Main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
// Code size 99 (0x63)
.maxstack 2
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// copies for implicit byrefs and when forward substituting.
class Runtime_80731
{
- static int Main(string[] args)
+ static int Main()
{
int code = 100;
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2023-01-22 16:00:16
// Run on Arm64 Windows
// Seed: 17286164302317655577
public class Runtime_81018
{
public static ulong s_2;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var vr6 = new S0();
var vr7 = new S0();
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
-class Program
+public class Program
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int result = Foo(new S32 { A = 100 });
if (result != 100)
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
+ <!-- Needed for CLRTestEnvironmentVariable -->
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
-class Runtime_81081
+using Xunit;
+public class Runtime_81081
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test(1234, default);
return 100;
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
+ <!-- Needed for CLRTestEnvironmentVariable -->
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public class Runtime_81356
{
public static byte[] s_130;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>False</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public static class FloatingPointHelper<TSelf>
where TSelf : IFloatingPoint<TSelf>
=> value.GetExponentShortestBitLength();
}
-class Runtime_81460
+public class Runtime_81460
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return (Test() == 0) ? 100 : 0;
}
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
[module: SkipLocalsInit]
-class Runtime_81585
+public class Runtime_81585
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Vector4 a = new Vector4(new Vector2(1.051f, 2.05f), 3.478f, 1.0f);
Vector4 b = new Vector4(new Vector3(1.051f, 2.05f, 3.478f), 0.0f);
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2023-02-06 00:41:34
// Run on X86 Windows
// Seed: 12611629827253727687
public static bool[][] s_18;
public static C0 s_26;
public static short[] s_42;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
short vr7 = default(short);
for (int vr8 = 0; vr8 < 0; vr8++)
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
[module: SkipLocalsInit]
-class Runtime_81725
+public class Runtime_81725
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Vector4 a = new Vector4(1.0f, 2.0f, -3.0f, -4.0f);
a.Z = 0.0f;
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
+ <!-- Needed for CLRTestEnvironmentVariable -->
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
public class Runtime_81739
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Plane p;
p.Normal = default;
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
-class Foo
+public class Foo
{
- public virtual void foo () {
+ internal virtual void foo () {
}
}
-class Derived : Foo
+public class Derived : Foo
{
void foo2 (Action a) {
a ();
}
- public override void foo () {
+ internal override void foo () {
foo2 (base.foo);
}
- public static int Main(string[] args) {
+ [Fact]
+ public static int TestEntryPoint() {
var d = new Derived ();
d.foo ();
return 100;
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2023-03-07 17:55:15
// Run on X86 Windows
// Seed: 7526964204781879473
{
public static C0 s_10 = new C0();
public static C1 s_64 = new C1();
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// We were optimizing GE(relop, 0) by reversing the relop, but the optimization is only valid for EQ/NE(relop, 0).
if (0 > (int)(s_10.F0 / 2699312582U))
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
// Generated by Fuzzlyn v1.5 on 2023-03-08 14:45:20
// Run on Arm64 MacOS
// Seed: 4799288502595168691
public class Runtime_83140_2
{
public static C0 s_3 = new C0();
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
// A case where produced incorrectly typed IR when optimizing NE(relop, 0) into relop
if ((s_3.F0 < s_3.F2) & ((s_3.F1 / 13548999118840769392UL) <= 0))
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
-class Runtime_83242
+public class Runtime_83242
{
[MethodImpl(MethodImplOptions.NoInlining)]
static int Map(int i)
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int[][] a = new int[11][];
int sum = 0;
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
-using System;
+using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
+using Xunit;
public class Test
{
return 0;
}
- public static int Main () {
+ [Fact]
+ public static int TestEntryPoint() {
try {
var t = new Test ();
t.test (null);
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<Optimize>True</Optimize>
</PropertyGroup>
<ItemGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
[StructLayout(LayoutKind.Sequential)]
class POINT
Marshal.StructureToPtr(mmi, lParam, true);
}
- public unsafe static int Main()
+ [Fact]
+ public unsafe static int TestEntryPoint()
{
MINMAXINFO mmi = new MINMAXINFO();
IntPtr pmmi = Marshal.AllocHGlobal(Marshal.SizeOf(mmi));
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType />
<Optimize>True</Optimize>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
.assembly extern mscorlib {}
-.assembly extern System.Runtime {}
+.assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) }
.assembly extern System.Runtime.Extensions {}
.assembly extern System.Diagnostics.Debug {}
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
//
using System;
+using Xunit;
public class Test_devdiv_174983
{
public static int l;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test_devdiv_174983 test = new Test_devdiv_174983();
test.i = 3;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly devdiv_180411
{
.class public _simple {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 100
call int64 [devdiv_180411]_simple::test()
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup>
<!-- Needed for JitOptimizationSensitive -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public class Repro
{
public float x;
public float y;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
byte[] buf = new byte[8];
WriteFloat(buf, 0, 123.0F);
return 100;
}
- public static void Test(object obj, byte[] buf)
+ internal static void Test(object obj, byte[] buf)
{
((Repro)obj).x = ReadFloat(buf, 0);
((Repro)obj).y = ReadFloat(buf, 4);
return IntBitsToFloat(ReadInt(buf, offset));
}
- public static void WriteInt(byte[] buf, int offset, int val)
+ internal static void WriteInt(byte[] buf, int offset, int val)
{
buf[offset + 3] = (byte)(val);
buf[offset + 2] = (byte)(val >> 8);
buf[offset] = (byte)(val >> 24);
}
- public static void WriteFloat(byte[] buf, int offset, float value)
+ internal static void WriteFloat(byte[] buf, int offset, float value)
{
WriteInt(buf, offset, FloatToRawIntBits(value));
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+ <ItemGroup>
+ <MergedWrapperProjectReference Include="CLR-x86-*/**/*.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_d.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_do.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_r.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_ro.??proj" />
+ </ItemGroup>
+
+ <Import Project="$(TestSourceDir)MergedTestRunner.targets" />
+</Project>
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+ <ItemGroup>
+ <MergedWrapperProjectReference Include="JitBlue/Runtime_*/**/*.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_d.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_do.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_r.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_ro.??proj" />
+ </ItemGroup>
+
+ <Import Project="$(TestSourceDir)MergedTestRunner.targets" />
+</Project>
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+ <ItemGroup>
+ <MergedWrapperProjectReference Include="JitBlue/**/*.??proj" />
+ <MergedWrapperProjectReference Remove="JitBlue/Runtime_*/**/*.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_d.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_do.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_r.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_ro.??proj" />
+ </ItemGroup>
+
+ <Import Project="$(TestSourceDir)MergedTestRunner.targets" />
+</Project>
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+ <ItemGroup>
+ <MergedWrapperProjectReference Include="VS-ia64-JIT/**/*.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_d.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_do.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_r.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_ro.??proj" />
+ </ItemGroup>
+
+ <Import Project="$(TestSourceDir)MergedTestRunner.targets" />
+</Project>
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+ <ItemGroup>
+ <MergedWrapperProjectReference Include="*/**/*.??proj" />
+ <MergedWrapperProjectReference Remove="CLR-x86-*/**/*.??proj" />
+ <MergedWrapperProjectReference Remove="JitBlue/**/*.??proj" />
+ <MergedWrapperProjectReference Remove="VS-ia64-JIT/**/*.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_d.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_do.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_r.??proj" />
+ <MergedWrapperProjectReference Remove="*/**/*_ro.??proj" />
+ </ItemGroup>
+
+ <Import Project="$(TestSourceDir)MergedTestRunner.targets" />
+</Project>
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+ <ItemGroup>
+ <MergedWrapperProjectReference Include="*/**/*_d.??proj" />
+ </ItemGroup>
+
+ <Import Project="$(TestSourceDir)MergedTestRunner.targets" />
+</Project>
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+ <ItemGroup>
+ <MergedWrapperProjectReference Include="*/**/*_do.??proj" />
+ </ItemGroup>
+
+ <Import Project="$(TestSourceDir)MergedTestRunner.targets" />
+</Project>
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+ <ItemGroup>
+ <MergedWrapperProjectReference Include="*/**/*_r.??proj" />
+ </ItemGroup>
+
+ <Import Project="$(TestSourceDir)MergedTestRunner.targets" />
+</Project>
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+ <ItemGroup>
+ <MergedWrapperProjectReference Include="*/**/*_ro.??proj" />
+ </ItemGroup>
+
+ <Import Project="$(TestSourceDir)MergedTestRunner.targets" />
+</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class a
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b103838 extends [mscorlib] System.Object {
.method public static int32 Main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 2
.locals init (int32 i,
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
public class Bug
{
static short s1 = 8712, s2 = -973;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
short s3 = (short)(s1 / s2);
short s4 = (short)(s1 % s2);
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
// -- Begin Main --------------------
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
br START
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
//
// -- Begin Main --------------------
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
//
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
// -- Begin Main --------------------
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
// -- -inf/-inf --
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
namespace strswitch
{
public class Class1
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
string[] s = { "one", "two", "three", "four", "five", "six" };
for (int i = 0; i < s.Length; i++)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _rem {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<PropertyGroup>
<!-- Needed for UnloadabilityIncompatible -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<!-- This test leaves threads running at exit -->
<UnloadabilityIncompatible>true</UnloadabilityIncompatible>
</PropertyGroup>
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
namespace DefaultNamespace
{
{
static int ExitCode = 0;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Thread mv_Thread;
ExternalException ee = new ExternalException();
return ExitCode;
}
- public virtual void runtest()
+ internal virtual void runtest()
{
int counter = 0;
for (int j = 0; j < 10; j++)
}
}
- public virtual void recurse(int counter, int i)
+ internal virtual void recurse(int counter, int i)
{
char[] abc = new char[100];
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _rem {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
namespace hello
{
- class Class1
+ public class Class1
{
- static public int Main(string[] args)
+ [Fact]
+ static public int TestEntryPoint()
{
int i = 123;
Console.WriteLine(i);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
public class test
{
static short si16;
static uint su32;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
si16 = -1;
su32 = (uint)si16;
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
public class test
{
static sbyte si8;
static char sc;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
sbyte i8 = -1;
char c = (char)i8;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public class History
{
private static Object with = null;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
CreateHistory(null, null, 0, 0, 0, 0, 0, DateTime.Now, 0, "ciao");
return 100;
return new History();
}
- public void initHistory
+ internal void initHistory
(short inCustomerId,
sbyte inCustomerDistrictId,
short inCustomerWarehouseId,
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
namespace test
{
public class Class1
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
+using Xunit;
public class Test_Main
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int[] arrayValues = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
Property prop = new Property(0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b81763'{}
.class public _c {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// :)
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b81764'{}
.class public auto ansi Test_b81764 extends [mscorlib] System.Object {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
//break
ldc.i4 100
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.class public ldftn_calli {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldftn int32 t()
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly extern legacy library mscorlib {}
.assembly 'b84128'{
.class public _ldobj {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.locals (class [mscorlib]System.IO.TextWriter,value class valClass,value class valClass)
.maxstack 2
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public Box_Unbox {
.field public static value class valClass vc
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldsfld value class valClass Box_Unbox::vc
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b84131'{}
.class public auto ansi Test_b84131 extends [mscorlib] System.Object {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
ldc.r4 1.0
ldc.r4 -1.0
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
ret
}
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldc.r4 -1.0
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public auto ansi Test_b84586 extends [mscorlib] System.Object {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
tail. call int32 method2()
ret
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b84590'{}
.class public auto ansi Test_b84590 extends [mscorlib] System.Object {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
// r4 real >= unordered
ldc.r4 float32(0xBF800000)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _initblk {
.field public static int32 DATA
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
// -- init a 4 byte block of memory to 0xAAAAAAAA
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b84957'{}
.class public auto ansi Test_b84957 extends [mscorlib] System.Object {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.locals (class [mscorlib]System.String)
.entrypoint
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b84958'{}
.class public ldloc_stloc {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
.locals (float32)
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
}
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldc.i4 0x55555555
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
ret
}
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldsflda native int _ret::PTR
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b85314'{}
.class public s {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldc.i4 0
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b85315'{}
.class public _shl {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldc.i4 0x7FFFFFFF
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b85316_M00'{}
.class public _n {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldc.r8 99.1
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.class public _rem {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldc.r8 3.5
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
ret
}
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldc.i4 0x7FFFFFFF
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.assembly 'b85566'{}
.class public s {
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 10
ldc.r8 5.5
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
//
// -- Begin Main --------------------
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
//
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
.assembly extern legacy library mscorlib {}
+.assembly extern xunit.core {}
.assembly extern System.Console
{
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
// -- Begin Main --------------------
.method public static int32 main() {
+.custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+)
.entrypoint
.maxstack 20
// -- -inf/-inf --
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class a
{
static int temp = 0;
- public static void MiddleMethod()
+ internal static void MiddleMethod()
{
temp += 1;
try
Console.WriteLine("Done...");
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine("Starting....");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
struct S
{
public class Test_test1
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
test1();
test2();
return 100;
}
- public static void test1()
+ internal static void test1()
{
C c = new C();
foo(C.s1);
}
- public static void test2()
+ internal static void test2()
{
C c = new C();
S s = C.s1;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
struct Pad
return (s1);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S sM = new S("test");
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class Hello1
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i, j, k, l, m, t;
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Collections;
using System.Runtime.InteropServices;
+using Xunit;
public enum TestEnum
{
[StructLayout(LayoutKind.Sequential)]
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<RestorePackages>false</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
using System;
using System.Collections;
using System.Runtime.InteropServices;
+using Xunit;
public struct AA
{
[StructLayout(LayoutKind.Sequential)]
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.InteropServices;
+using Xunit;
[StructLayoutAttribute(LayoutKind.Sequential, Pack = 8)]
internal sealed class tagDBPROPSET
public class a
{
- static public int Main()
+ [Fact]
+ static public int TestEntryPoint()
{
try
{
using System;
using System.Collections;
using System.Runtime.InteropServices;
+using Xunit;
public enum TestEnum
{
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<RestorePackages>false</RestorePackages>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class foo
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = 3;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
namespace test
{
public class Locals10K
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
System.Int32
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Threading;
+using Xunit;
public class testout1
{
if (ab_false[index] && ab_false[index] ? ab_false[index] : ab_false[index]) True_Sum++; else False_Sum++;
sum += (True_Sum * 2) - False_Sum; return;
}
- public void Fire()
+ internal void Fire()
{
int temp = sum;
sum = 0;
return;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int Sum = 0;
Thread[] Thrd = new Thread[15];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.field private class MyTest tc
.method public static int32 RealMain()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.try
{
.method public hidebysig static void Main() cil managed
{
- .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
- 01 00 00 00
- )
.locals init (int32 V_0,
class MyClass V_1,
int32 V_2,
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
public class foo
{
public static sbyte a, b, c;
#pragma warning restore 0414
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
a = 19;
return 100;
}
- public static void div()
+ internal static void div()
{
sbyte b = 3;
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
public class foo
{
public static short a, b, c;
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
a = 19;
return 100;
}
- public static void div()
+ internal static void div()
{
c = (short)(a / b);
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
struct Foo
{
#pragma warning disable 0414
arg = _myArray[3];
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
_myArray = new Foo[10];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = 0;
i += ParamOnStack();
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
// The .NET Foundation licenses this file to you under the MIT license.
//
+using Xunit;
public class ovf
{
- public static void f()
+ internal static void f()
{
uint x = 0xfffffffe;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try { f(); }
catch (System.OverflowException) { return 100; }
<PropertyGroup>
<!-- Needed for CMakeProjectReference -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Runtime.InteropServices;
+using Xunit;
namespace JitTest.HFA
{
[DllImport("test2", EntryPoint = "GetDoubleConst")]
public static extern double GetDoubleConst();
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
System.Console.WriteLine("Int32 Const = " + GetInt32Const());
System.Console.WriteLine("Int64 Const = " + GetInt64Const());
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
//
using System;
+using Xunit;
public class otherClass
{
public class MyApp
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = 2, j = 3, w;
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<!-- Test relies on rva_statics support see #2451 -->
<DisableProjectBuild>true</DisableProjectBuild>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.assembly extern System.Console { auto }
+.assembly extern xunit.core {}
.assembly extern System.Runtime.Extensions { auto }
.assembly extern mscorlib { auto }
.method public static int32 main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
.maxstack 18
.locals init (class [mscorlib]System.Exception V_0,
<PropertyGroup>
<!-- Needed for GCStressIncompatible -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<GCStressIncompatible>true</GCStressIncompatible>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
+using Xunit;
internal struct VC
{
public class A
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
VC vc = new VC();
vc.x = 5;
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
namespace test
{
public class LargeArray114
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
System.String[] array = new System.String[114];
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
struct T
{
public class Tester
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
T t1, t2;
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Collections;
using System.Runtime.InteropServices;
+using Xunit;
public enum TestEnum
{
[StructLayout(LayoutKind.Sequential)]
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
// actually process the address of the local, rather than the local.
using System;
+using Xunit;
public class test
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int i = 0;
i += ParamInReg();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
struct S
{
GC.Collect();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S sM;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
struct S
{
Console.WriteLine(s1.str + s2.str + s3.str + s4.str);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S sM, sM2, sM3, sM4;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
struct Pad
{
return (s1);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
S sM = new S("test");
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
namespace JitTest.HFA
{
public float f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12;//, f13, f14, f15;
}
- public static void Init(out HFA12 hfa)
+ internal static void Init(out HFA12 hfa)
{
hfa.f1 = 1;
hfa.f2 = 2;
}
- public static void Print0(HFA12 hfa)
+ internal static void Print0(HFA12 hfa)
{
System.Console.WriteLine(" -- Print0");
System.Console.WriteLine("f1 = {0}", hfa.f1);
System.Console.WriteLine("f12 = {0}", hfa.f12);
}
- public static void Print1(float v1, HFA12 hfa)
+ internal static void Print1(float v1, HFA12 hfa)
{
System.Console.WriteLine(" -- Print1");
System.Console.WriteLine("f1 = {0}", hfa.f1);
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
HFA12 hfa11;
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class foo
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Console.WriteLine("testTableSwitch: ");
int s = 2, r = 3;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Collections;
using System.Runtime.InteropServices;
+using Xunit;
public enum TestEnum
{
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
using System;
using System.Collections;
using System.Runtime.InteropServices;
+using Xunit;
[StructLayout(LayoutKind.Sequential)]
public struct AA
[StructLayout(LayoutKind.Sequential)]
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
App.m_bFwd6 = false;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
using System;
using System.Collections;
using System.Runtime.InteropServices;
+using Xunit;
public enum TestEnum
{
red = 1,
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
#pragma warning disable 458, 169
using System;
+using Xunit;
public class NullableTest
{
public static int counter = 0;
public static bool result = true;
- public static void Eval(bool expr)
+ internal static void Eval(bool expr)
{
counter++;
if (!expr)
}
- public static void Eval(object obj1, object obj2)
+ internal static void Eval(object obj1, object obj2)
{
counter++;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
NullableTest.Run();
<PropertyGroup>
<!-- Needed for GCStressIncompatible -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<!-- NOTE: this test simply takes too long to complete under GC stress; it is not fundamentally incompatible -->
<GCStressIncompatible>true</GCStressIncompatible>
<CLRTestPriority>1</CLRTestPriority>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
//
using System;
+using Xunit;
public class MyDispose : IDisposable
{
return 0;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Test_repro t = new Test_repro();
int retVal = 0;
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test relies on rva_statics support see #2451 -->
<DisableProjectBuild>true</DisableProjectBuild>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
// Metadata version: v2.0.50131
.assembly extern mscorlib
.class public auto ansi Test_b450688 extends [mscorlib] System.Object {
.method public static int32 Main() cil managed
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
call object Test()
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
.publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )
.ver 4:0:0:0
}
+.assembly extern xunit.core {}
.assembly extern mscorlib {}
.assembly 'b286991' {}
.class public auto ansi Test_b286991 extends [mscorlib] System.Object {
.method public static int32 Main()
{
+ .custom instance void [xunit.core]Xunit.FactAttribute::.ctor() = (
+ 01 00 00 00
+ )
.entrypoint
ldc.i4 0x40
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<RestorePackages>true</RestorePackages>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Collections;
using System.Runtime.InteropServices;
+using Xunit;
#pragma warning disable 1717, 0252, 1718, 0162, 0219
public class App
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
using System.Security;
// using System.Security.Permissions;
using System.Collections.Generic;
+using Xunit;
// [KeyContainerPermission(SecurityAction.Demand, Flags = KeyContainerPermissionFlags.Delete)]
public static class GenericSecurity
}
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System;
using System.Runtime.CompilerServices;
+using Xunit;
public static class DeadEH
{
}
// Get everything jitted before we call
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Foo("prep");
Bar(0);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+using Xunit;
public class Test_DevDiv_374539
{
Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy(); Dummy();
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
try
{
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
- <OutputType>Exe</OutputType>
<!-- This test takes a long time to run; exclude it by default -->
<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>