public void TestTextureAdd() { var texture = new Texture(0, 0, TextureRotation.Any); var textureGroup = new TextureGroup(); textureGroup.Add(texture); Assert.IsTrue(textureGroup.Items.Contains(texture)); }
public void TestTextureAddedEvent() { var texture = new Texture(0, 0, TextureRotation.Any); var textureGroup = new TextureGroup(); var wasTextureAdded = false; textureGroup.ItemAdded += addedTexture => wasTextureAdded = addedTexture == texture; textureGroup.Add(texture); Assert.IsTrue(wasTextureAdded); }