FogSettingsTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Tests.Content FogSettingsTests

Namespace: DeltaEngine.Tests.Content
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public class FogSettingsTests

The FogSettingsTests type exposes the following members.

Constructors

  NameDescription
Public methodFogSettingsTests
Initializes a new instance of the FogSettingsTests class
Top
Methods

  NameDescription
Public methodCreatingOwnFogSettingsWillChangeTheCurrentSettings
Public methodCurrentFogSettingsWillBeFilledWithDefaultValuesIfNoSpecificSettingsAreSet
Top
Examples

[Test]
public void CurrentFogSettingsWillBeFilledWithDefaultValuesIfNoSpecificSettingsAreSet()
{
    FogSettings defaultSettings = FogSettings.Current;
    Assert.AreNotEqual(0, defaultSettings.FogStart);
    Assert.AreNotEqual(0, defaultSettings.FogEnd);
    Assert.AreNotEqual(0, defaultSettings.FogColor.A);
}
[Test]
public void CreatingOwnFogSettingsWillChangeTheCurrentSettings()
{
    FogSettings defaultSettings = FogSettings.Current;
    var ownFogSettings = new FogSettings(Color.Green, 1, 2);
    Assert.AreNotEqual(defaultSettings, ownFogSettings);
    Assert.AreEqual(ownFogSettings, FogSettings.Current);
}
See Also