Namespace: DeltaEngine.Scenes.Controls
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Scenes.Tests.Controls.PictureTests
2 unit tests call DeltaEngine.Scenes.Controls.Picture.SetAppearanceWithoutInterpolation(DeltaEngine.Content.Material)
Assembly: DeltaEngine.Scenes (in DeltaEngine.Scenes.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- material
- Type: DeltaEngine.Content Material
Remarks
Examples
[Test] public void SetAppearanceWithoutInterpolationWithNullShouldReturn() { Assert.DoesNotThrow(() => picture.SetAppearanceWithoutInterpolation(null)); }
[Test] public void SetAppearanceWithoutInterpolation() { var newMaterial = new Material(Color.Red); picture.SetAppearanceWithoutInterpolation(newMaterial); Assert.AreEqual(newMaterial, picture.Material); Assert.AreEqual(newMaterial.DefaultColor, picture.Color); }
See Also