Unit test class for the library. Creates a Scene, pushes it to the scene stack, creates a GameObject and asserts the scene directory reports one GameObject.
using Sandbox;
[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 );
}
}
}