Inheritance Hierarchy
DeltaEngine.Tests.Content FogSettingsTests
Namespace: DeltaEngine.Tests.Content
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The FogSettingsTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
FogSettingsTests | Initializes a new instance of the FogSettingsTests class |
Methods
Name | Description | |
---|---|---|
CreatingOwnFogSettingsWillChangeTheCurrentSettings | ||
CurrentFogSettingsWillBeFilledWithDefaultValuesIfNoSpecificSettingsAreSet |
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