ColorChangerTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  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

public class ColorChangerTests : TestWithMocksOrVisually

The ColorChangerTests type exposes the following members.

Constructors

  NameDescription
Public methodColorChangerTests
Initializes a new instance of the ColorChangerTests class
Top
Methods

  NameDescription
Protected methodAdvanceTimeAndUpdateEntities (Inherited from TestWithMocksOrVisually.)
Public methodCheckIfBackgroundColorWasChangedAfterOneSecond
Public methodInitializeResolver (Inherited from TestWithMocksOrVisually.)
Protected methodRegisterMock T  (Inherited from TestWithMocksOrVisually.)
Protected methodResolve T  (Inherited from TestWithMocksOrVisually.)
Protected methodRunAfterFirstFrame (Inherited from TestWithMocksOrVisually.)
Public methodRunTestAndDisposeResolverWhenDone (Inherited from TestWithMocksOrVisually.)
Top
Properties

  NameDescription
Protected propertyIsMockResolver (Inherited from TestWithMocksOrVisually.)
Top
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