SingleHumanGameTests CacheAndReuseButtonThemesToImprovePerformace Method Delta Engine Documentation

Namespace: Drench.Tests.Games
Assembly: Drench.Tests (in Drench.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CacheAndReuseButtonThemesToImprovePerformace()
Examples

[Test, CloseAfterFirstFrame]
public void CacheAndReuseButtonThemesToImprovePerformace()
{
    var numberOfButtonThemesCreated = game.NumberOfButtonThemesCreated;
    ClickMouse(WinningMoves[0]);
    Assert.AreEqual(numberOfButtonThemesCreated, game.NumberOfButtonThemesCreated);
    ClickMouse(WinningMoves[1]);
    Assert.AreEqual(numberOfButtonThemesCreated, game.NumberOfButtonThemesCreated);
}
See Also