public void TestTextureRemove() { var texture = new Texture(0, 0, TextureRotation.Any); var textureGroup = new TextureGroup(); textureGroup.Add(texture); textureGroup.Remove(texture); Assert.IsFalse(textureGroup.Items.Contains(texture)); }
public void TestTextureRemove() { var texture = new Texture(0, 0, TextureRotation.Any); var textureGroup = new TextureGroup(); textureGroup.Add(texture); textureGroup.Remove(texture); Assert.IsFalse(textureGroup.Items.Contains(texture)); }
public void TestTextureRemovedEvent() { var texture = new Texture(0, 0, TextureRotation.Any); var textureGroup = new TextureGroup(); var wasTextureRemoved = false; textureGroup.ItemRemoved += addedTexture => wasTextureRemoved = addedTexture == texture; textureGroup.Add(texture); textureGroup.Remove(texture); Assert.IsTrue(wasTextureRemoved); }
public void TestTextureRemovedEvent() { var texture = new Texture(0, 0, TextureRotation.Any); var textureGroup = new TextureGroup(); var wasTextureRemoved = false; textureGroup.ItemRemoved += addedTexture => wasTextureRemoved = addedTexture == texture; textureGroup.Add(texture); textureGroup.Remove(texture); Assert.IsTrue(wasTextureRemoved); }