Files
Garry Newman d95169d8fa Unit Test Cleanup (#5064)
* Move all unit tests to Engine/Tests
* Fix Margin.EdgeSubtract
* Fix Capsule.Contains
* EnvironmentVariables.Remove if it's null
* Fixed ray trace never returning startedsolid
* Fix HistoryList.Navigate on empty list
* Fix GameObject.WorldPosition accepting NaNs
* Fix flex: initial expanding to the wrong grow/shrink
* Translation.TryConvert shouldn't throw on invalid enum strings
* Skip sound file tests on machines with no audio device
2026-06-12 13:23:50 +01:00

23 lines
849 B
C#

global using Microsoft.VisualStudio.TestTools.UnitTesting;
global using Sandbox;
global using System.Linq;
global using System.Threading.Tasks;
global using Assert = Microsoft.VisualStudio.TestTools.UnitTesting.Assert;
// This assembly never loads the native engine, so these tests run anywhere dotnet runs
// and can parallelize freely. If a test needs interop it belongs in Sandbox.Test.Engine.
// The compiler toolchain tests (Compiling/, Hotload/) share state, so those classes
// are [DoNotParallelize] and run serially after the parallel batch.
[assembly: Parallelize( Workers = 0, Scope = ExecutionScope.MethodLevel )]
[TestClass]
public class TestInit
{
[AssemblyInitialize]
public static void AssemblyInitialize( TestContext context )
{
// Managed-only setup - keep anything native out of here.
Application.IsUnitTest = true;
}
}