public void MoveAndRemove() { #region ... SPDisplayObjectContainer container = new SPStage(); SPDisplayObject obj1 = new SPQuad(32.0f, 32.0f); SPDisplayObject obj2 = new SPQuad(32.0f, 32.0f); SPDisplayObject obj3 = new SPQuad(32.0f, 32.0f); SPDisplayObject obj4 = new SPQuad(32.0f, 32.0f); container.Add(obj1); container.Add(obj2); container.Add(obj3); container.Add(obj4); Assert.True(container.Count == 4); Assert.True(container.IndexOf(obj4) == 3); container.Move(1, obj4); Assert.True(container.Count == 4); Assert.True(container.IndexOf(obj4) == 1); Assert.True(container.IndexOf(obj2) == 2); Assert.True(container.Remove(obj3)); Assert.False(container.Remove(obj3)); Assert.True(container.Count == 3); Assert.False(container.Contains(obj3)); container.RemoveAt(1); Assert.True(container.Count == 2); Assert.False(container.Contains(obj4)); container.Clear(); Assert.True(container.Count == 0); #endregion }