UnitTests/LibraryTest.cs

Unit test class for the Sandbox.States library. It creates a Scene, pushes it onto the scene stack, creates a GameObject and asserts the scene's GameObjectCount is 1.

namespace Sandbox.States.Test;

[TestClass]
public partial class LibraryTests
{
	[TestMethod]
	public void SceneTest()
	{
		var scene = new Scene();
		using ( scene.Push() )
		{
			var go = new GameObject();

			Assert.AreEqual( 1, scene.Directory.GameObjectCount );
		}
	}

}