UnitTests/LibraryTest.cs

Unit test class for the library, contains a single test that creates a Scene, pushes it onto a context, creates a GameObject and asserts the scene directory reports one GameObject.

using Sandbox;

namespace APLib.UnitTests;

[TestClass]
public class LibraryTests
{
	[TestMethod]
	public void SceneTest()
	{
		var scene = new Scene();
		
		using ( scene.Push() )
		{
			var go = new GameObject();
			Assert.AreEqual( 1, scene.Directory.GameObjectCount );
		}
	}
}