Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
FindTheWord.Tests ButtonTests
Namespace: FindTheWord.Tests
Assembly: FindTheWord.Tests (in FindTheWord.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The ButtonTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | ButtonTests | Initializes a new instance of the ButtonTests class |
Methods
Name | Description | |
---|---|---|
![]() | AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) |
![]() | CreateButton | |
![]() | InitializeResolver | (Inherited from TestWithMocksOrVisually.) |
![]() | RegisterMock T | (Inherited from TestWithMocksOrVisually.) |
![]() | Resolve T | (Inherited from TestWithMocksOrVisually.) |
![]() | RunAfterFirstFrame | (Inherited from TestWithMocksOrVisually.) |
![]() | RunTestAndDisposeResolverWhenDone | (Inherited from TestWithMocksOrVisually.) |
![]() | ShowClickableButton | |
![]() | ShowHoverState |
Properties
Name | Description | |
---|---|---|
![]() | IsMockResolver | (Inherited from TestWithMocksOrVisually.) |
Examples
[Test] public void ShowHoverState() { new GameButton("Wurm1", new Rectangle(0, 0, 0.5f, 0.5f)); }
[Test] public void ShowClickableButton() { var button = new GameButton("Wurm1", new Rectangle(0, 0, 0.5f, 0.5f)); button.Clicked += () => button.Alpha = button.Alpha == 1.0f ? 0.5f : 1.0f; }
[Test] public void CreateButton() { var button = new GameButton("Wurm1", new Rectangle(0, 0, 0.5f, 0.5f)); Assert.IsNotNull(button); }
See Also