See https://github.com/markples/utils/tree/for-PR-dotnet-runtime-85847-others for ILTransform tool.
* [ILTransform -prociso] Set RequiresProcessIsolation when needed by other properties
* [ILTransform -public] Make test entrypoints accessible
* Manual fixes for [ILTransform -public] - public partial classes
* [ILTransform -ilfact] Main->TestEntryPoint, [Fact], remove OutputType=Exe
* Remove DOTNET_JitFuncInfoLogFile/SIMD.log from JIT/SIMD
* Manual fixes for xUnit1013 - internal methods
* Manually fix case of accessibility of test in nested type
* Add merged group
using System;
using System.Collections.Generic;
using System.Numerics;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
const float EPS = Single.Epsilon * 5;
return arr;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
short[] arr = GenerateArray(60, 5);
var a = new System.Numerics.Vector<short>(arr);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Collections.Generic;
using System.Numerics;
using Point = System.Numerics.Vector4;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Point a = new Point(11, 13, 8, 4);
Point b = new Point(11, 13, 2, 1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector2;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
const float EPS = Single.Epsilon * 5;
return 100;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Point a = new Point(0, 0), b = new Point(1, 0);
Point c = a + b;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector2;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
public const int DefaultSeed = 20010415;
public static int Seed = Environment.GetEnvironmentVariable("CORECLR_SEED") switch
return 100;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (TestDouble() != 100)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using System.Numerics;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
{
var a = new System.Numerics.Vector<int>(1);
<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>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System.Numerics;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int Count = System.Numerics.Vector<int>.Count;
return 100;
<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.Numerics;
using Point = System.Numerics.Vector2;
+using Xunit;
namespace ClassLibrary
return a > b ? a : b;
}
- static public void swap(ref float a, ref float b)
+ static internal void swap(ref float a, ref float b)
{
float c = a;
a = b;
return (float)(mantissa * exponent);
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
List<Point> points = new List<Point>();
Random random = new Random(13);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using System.Numerics;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
const float EPS = Single.Epsilon * 5;
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
var a = new System.Numerics.Vector<short>(51);
for (int i = 0; i < System.Numerics.Vector<short>.Count; ++i)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector<int>;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
static int[] GenerateArray(int size, int value)
{
return arr;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int v = 2;
int[] arr = GenerateArray(20, v);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
- class Program
+ public class Program
{
const float EPS = Single.Epsilon * 5;
return 100;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
+<?xml version="1.0" encoding="utf-8"?>
<Project>
+ <Import Project="..\..\Directory.Merged.props" />
<Import Project="$([MSBuild]::GetPathOfFileAbove(Directory.Build.props, $(MSBuildThisFileDirectory)..))" />
<PropertyGroup>
- <CLRTestBatchPreCommands>
- <![CDATA[
-$(CLRTestBatchPreCommands)
-if EXIST SIMD.log (del SIMD.log)
-]]>
- </CLRTestBatchPreCommands>
- <CLRTestBashPreCommands>
- <![CDATA[
-$(CLRTestBashPreCommands)
-rm -f SIMD.log
-]]>
- </CLRTestBashPreCommands>
+ <RunAnalyzers>true</RunAnalyzers>
+ <EnableNETAnalyzers>false</EnableNETAnalyzers>
</PropertyGroup>
-
- <ItemGroup>
- <CLRTestBashEnvironmentVariable Include="DOTNET_JitFuncInfoLogFile" Value="SIMD.log" />
- </ItemGroup>
-
</Project>
using System;
using System.Collections.Generic;
using System.Numerics;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
{
var a = new Vector<uint>(1000000);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector4;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
static Point a;
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Point p = new Point(1, 2, 3, 4);
Point c = p;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector<double>;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
const float EPS = Single.Epsilon * 5;
public const int DefaultSeed = 20010415;
return true;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Random random = new Random(Seed);
int count = Point.Count;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
--- /dev/null
+<Project Sdk="Microsoft.NET.Sdk">
+ <ItemGroup>
+ <MergedWrapperProjectReference Include="**/*.??proj" />
+ <MergedWrapperProjectReference Remove="$(MSBuildThisFileFullPath)" />
+ </ItemGroup>
+
+ <Import Project="$(TestSourceDir)MergedTestRunner.targets" />
+</Project>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector4;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
static float Do(Point p)
{
public Point p;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Point p = new Point(1, 2, 3, 4);
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector<int>;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
static float Do(Point p)
{
public Point p;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Point p = new Point(1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<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">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<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.InteropServices;
using Point = System.Numerics.Vector4;
+using Xunit;
namespace Test
{
- static class Program
+ public static class Program
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Point x = new Point(1);
Point y, z;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Numerics;
+using Xunit;
-class Matrix4x4Test
+public class Matrix4x4Test
{
private const int Pass = 100;
private const int Fail = -1;
return returnVal;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return Matrix4x4CreateScaleCenterTest3();
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector4;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Point a = new Point(10, 50,0,-100);
Point b = new Point(10);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector2;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Point a = new Point(10, 50);
Point b = new Point(10, 10);
<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>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Numerics;
+using Xunit;
-class PlaneTest
+public class PlaneTest
{
private const int Pass = 100;
private const int Fail = -1;
return returnVal;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return PlaneCreateFromVerticesTest();
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Numerics;
using System.Runtime.InteropServices;
using System.Collections.Generic;
+using Xunit;
public class Test
{
[MethodImpl(MethodImplOptions.NoInlining)]
private static unsafe int ShrxRef64bit(ushort* x, int y) => *x >> y;
- public static unsafe int Main()
+ [Fact]
+ public static unsafe int TestEntryPoint()
{
const int PASS = 100;
const int FAIL = 101;
<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;
using System.Numerics;
+using Xunit;
namespace SIMDDebugTest
{
- class Program
+ public class Program
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Vector4Test.RunTests();
Vector3Test.RunTests();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
using System;
using System.Collections.Generic;
using System.Numerics;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
public const int DefaultSeed = 20010415;
public static int Seed = Environment.GetEnvironmentVariable("CORECLR_SEED") switch
_ => DefaultSeed
};
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Random random = new Random(Seed);
var a = new System.Numerics.Vector<short>(25);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector<int>;
+using Xunit;
namespace VectorTests
{
- class Program
+ public class Program
{
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Point p = new Point(1);
Point[] arr = new Point[10];
<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>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector4;
+using Xunit;
namespace VectorMathTests
{
- class Program
+ public class Program
{
public const int DefaultSeed = 20010415;
public static int Seed = Environment.GetEnvironmentVariable("CORECLR_SEED") switch
return s.X;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
System.Diagnostics.Stopwatch clock = new System.Diagnostics.Stopwatch();
clock.Start();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector3;
+using Xunit;
namespace VectorTests
{
- class Program
+ public class Program
{
const float EPS = Single.Epsilon * 5;
return Math.Abs(a - b) < EPS;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Point a = new Point(1, 2, 3);
Point b = new Point(2, 2, 5);
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
Assert.NotEqual(v7.GetHashCode(), v9.GetHashCode());
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
<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.Numerics;
using System.Runtime.InteropServices;
using System.Text;
+using Xunit;
public struct DT
}
}
-class Test_Vector3Interop
+public class Test_Vector3Interop
{
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (!PInvokeTest.test())
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
+ <!-- Needed for CMakeProjectReference -->
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
+ <!-- Needed for CMakeProjectReference -->
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
</PropertyGroup>
<PropertyGroup>
<DebugType>None</DebugType>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Collections.Generic;
using Point = System.Numerics.Vector4;
+using Xunit;
namespace VectorTests
{
- class Program
+ public class Program
{
const float EPS = Single.Epsilon * 5;
return Math.Abs(a - b) < EPS;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
Point a = new Point(1, 2, 3, 4);
Point b = new Point(2, 2, 1, 1);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorAddTest<float>.VectorAdd(1, 2, (float)(1 + 2)) != Pass) returnVal = Fail;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
internal class Color
{
public Vector<float> RGB { get { return _rgb; } }
}
-internal partial class VectorTest
+public partial class VectorTest
{
private static int VectorArgs()
{
return Pass;
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return VectorArgs();
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<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.Arm;
using System.Runtime.Intrinsics.X86;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
try
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
Random random = new Random(Seed);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<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">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<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;
-internal partial class VectorTest
+public partial class VectorTest
{
const int Pass = 100;
const int Fail = -1;
return success;
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
bool succeeded = true;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
<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>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-partial class VectorTest
+public partial class VectorTest
{
const int Pass = 100;
const int Fail = -1;
}
}
- static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
+ <!-- Needed for CLRTestTargetUnsupported -->
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
<DefineConstants>TARGET_32BIT;$(DefineConstants)</DefineConstants>
<!-- 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>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
+ <!-- Needed for CLRTestTargetUnsupported -->
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
<!-- 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>
<DebugType>None</DebugType>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
+ <!-- Needed for CLRTestTargetUnsupported -->
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
<DefineConstants>TARGET_32BIT;$(DefineConstants)</DefineConstants>
<!-- 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>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
+ <!-- Needed for CLRTestTargetUnsupported -->
+ <RequiresProcessIsolation>true</RequiresProcessIsolation>
<!-- 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>
<DebugType>None</DebugType>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
Random random = new Random(Seed);
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorMulTest<float>.VectorDiv(6f, 2f, 6f / 2f) != Pass) returnVal = Fail;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorDotTest<float>.VectorDot(3f, 2f, 6f * Vector<float>.Count) != Pass) returnVal = Fail;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<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.Arm;
using System.Runtime.Intrinsics.X86;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorGetTest<Double>.VectorGet(101D, 1) == Fail) returnVal = Fail;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorHWAccelTest<float>.VectorHWAccel(1, 2, (float)(1 + 2)) != Pass) returnVal = Fail;
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
if (Vector.IsHardwareAccelerated)
{
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<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">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<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">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private static int VectorIntEquals()
{
return Pass;
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
return VectorIntEquals();
}
<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>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
return returnVal;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorMaxTest<float>.VectorMax(2f, 3f, 3f) != Pass) returnVal = Fail;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorMinTest<float>.VectorMin(2f, 3f, 2f) != Pass) returnVal = Fail;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorMulTest<float>.VectorMul(2, 3, (float)(2 * 3), (float)(2 * 3) * (2 * 3), (float)(3 * 3)) != Pass)
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorRelopTest<float>.VectorRelOp(3, 2) != Pass) returnVal = Fail;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<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;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
};
[MethodImplAttribute(MethodImplOptions.NoInlining)]
- public static void init()
+ internal static void init()
{
Random random = new Random(Seed);
return Pass;
}
- public static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
init();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorSetTest.VectorSet(3.14f) == Fail) returnVal = Fail;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorSqrtTest<float>.VectorSqrt(25f, 5f, 1E-06f) != Pass)
<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>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
return Pass;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
if (VectorSubTest<float>.VectorSub(3, 2, (float)(3 - 2)) != Pass) returnVal = Fail;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<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.Arm;
using System.Runtime.Intrinsics.X86;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System;
using System.Numerics;
+using Xunit;
-internal partial class VectorTest
+public partial class VectorTest
{
private const int Pass = 100;
private const int Fail = -1;
}
}
- private static int Main()
+ [Fact]
+ public static int TestEntryPoint()
{
int returnVal = Pass;
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize />
</PropertyGroup>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
- <OutputType>Exe</OutputType>
- </PropertyGroup>
- <PropertyGroup>
<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
using System.Numerics;
using System.IO;
-internal partial class VectorTest
+public partial class VectorTest
{
public static bool CheckValue<T>(T value, T expectedValue)
{