public void ShouldCallEnableOnResourcesWhenConstructed()
        {
            SceneLayer        testLayer    = new SceneLayer("Test Layer");
            TestLayerResource testResource = testLayer.GetResource <TestLayerResource>();

            Assert.IsTrue(testResource.IsEnabled);
            testLayer.Dispose();
        }
        public void TestResources()
        {
            // Define variables and constants
            SceneLayer testLayer = new SceneLayer("Test Layer");

            // Set up context
            TestLayerResource testResource = testLayer.GetResource <TestLayerResource>();

            // Execute
            Assert.IsFalse(testResource.IsDisabled);
            testLayer.IsEnabled = false;
            Assert.IsTrue(testResource.IsDisabled);
            testLayer.IsEnabled = true;
            Assert.IsTrue(testResource.IsEnabled);
            Assert.AreEqual(testLayer.GetResource <TestLayerResource>(), testResource);
            Assert.IsFalse(testResource.IsDisposed);
            testLayer.Dispose();
            Assert.IsTrue(testResource.IsDisposed);

            // Assert outcome
        }