Picture SetAppearance Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Controls
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void SetAppearance(
	Material material
)
Remarks

Tests: DeltaEngine.Scenes.Tests.Controls.PictureTests
Examples

4 unit tests call DeltaEngine.Scenes.Controls.Picture.SetAppearance(DeltaEngine.Content.Material)
[Test]
public void SetAppearance()
{
    material = new Material(Color.Red);
    picture.SetAppearance(material);
    Assert.AreEqual(material, picture.Material);
    Assert.AreEqual(material.DefaultColor, picture.Color);
}
[Test]
public void SetAppearanceWithNullShouldReturn()
{
    Assert.DoesNotThrow(() => picture.SetAppearance(null));
}
[Test]
public void SetAppearanceWithoutInterpolationWithNullShouldReturn()
{
    Assert.DoesNotThrow(() => picture.SetAppearanceWithoutInterpolation(null));
}
See Also