Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
EmptyApp.Tests ColorChangerTests
Namespace: EmptyApp.Tests
Assembly: EmptyApp.Tests (in EmptyApp.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The ColorChangerTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ColorChangerTests | Initializes a new instance of the ColorChangerTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
CheckIfBackgroundColorWasChangedAfterOneSecond | ||
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] public void CheckIfBackgroundColorWasChangedAfterOneSecond() { var app = new ColorChanger(Resolve<Window>()); var initialColor = new Color(); AdvanceTimeAndUpdateEntities(1.0f); Assert.AreNotEqual(initialColor, app.NextColor); }
See Also