Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
DeltaEngine.Platforms.Tests FileSettingsTests
Namespace: DeltaEngine.Platforms.Tests
Assembly: DeltaEngine.Platforms.Tests (in DeltaEngine.Platforms.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The FileSettingsTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | FileSettingsTests | Initializes a new instance of the FileSettingsTests class |
Methods
Name | Description | |
---|---|---|
![]() | AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) |
![]() | ChangeAndSaveSettings | |
![]() | ChangeFileSettings | |
![]() | CheckDefaultSettings | |
![]() | Cleanup | |
![]() | Init | |
![]() | InitializeResolver | (Inherited from TestWithMocksOrVisually.) |
![]() | RegisterMock T | (Inherited from TestWithMocksOrVisually.) |
![]() | Resolve T | (Inherited from TestWithMocksOrVisually.) |
![]() | RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) |
![]() | RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) |
Properties
Name | Description | |
---|---|---|
![]() | IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test, CloseAfterFirstFrame] public void CheckDefaultSettings() { Assert.AreEqual(false, fileSettings.StartInFullscreen); Assert.AreEqual(1.0f, fileSettings.SoundVolume); Assert.AreEqual(0.75f, fileSettings.MusicVolume); Assert.AreEqual(24, fileSettings.DepthBufferBits); Assert.AreEqual(32, fileSettings.ColorBufferBits); Assert.AreEqual(0, fileSettings.AntiAliasingSamples); Assert.AreEqual(0, fileSettings.LimitFramerate); Assert.AreEqual(20, fileSettings.UpdatesPerSecond); }
[Test, CloseAfterFirstFrame] public void ChangeAndSaveSettings() { fileSettings.PlayerName = ModifiedPlayerName; fileSettings.TwoLetterLanguageName = ModifiedTwoLetterLanguageName; fileSettings.Save(); Assert.IsTrue(File.Exists(SettingsFilePath)); }
[Test] public void ChangeFileSettings() { fileSettings.StartInFullscreen = true; Assert.AreEqual(true, fileSettings.StartInFullscreen); fileSettings.StartInFullscreen = false; }
See Also