Inheritance Hierarchy
DeltaEngine.Platforms TestWithMocksOrVisually
DeltaEngine.Scenes.Tests.Controls ControlTests
Namespace: DeltaEngine.Scenes.Tests.Controls
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The ControlTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ControlTests | Initializes a new instance of the ControlTests class |
Methods
Name | Description | |
---|---|---|
AdvanceTimeAndUpdateEntities | (Inherited from TestWithMocksOrVisually.) | |
EachControlShouldHaveAnUniqueName | ||
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 EachControlShouldHaveAnUniqueName() { var button1 = new Button(new Theme(), new Rectangle()); Assert.IsTrue(button1.Name.StartsWith("Button")); var button2 = new Button(new Theme(), new Rectangle()); Assert.IsTrue(button2.Name.StartsWith("Button")); Assert.AreNotEqual(button1.Name, button2.Name); var picture1 = new Picture(new Theme(), new Material(Color.Red, ShaderFlags.Position2DColored), new Rectangle()); Assert.IsTrue(picture1.Name.StartsWith("Picture")); }
See Also