public void Insert() { #region ... SPDisplayObject child1 = new SPQuad(32.0f, 32.0f); SPDisplayObject child2 = new SPQuad(32.0f, 32.0f); SPDisplayObject child3 = new SPQuad(32.0f, 32.0f); SPDisplayObjectContainer container = new SPStage(); container.Add(child1); container.Add(child3); container.Insert(1, child2); Assert.True(container.Count == 3); Assert.True(container.IndexOf(child1) == 0); Assert.True(container.IndexOf(child2) == 1); Assert.True(container.IndexOf(child3) == 2); #endregion }