Class UnityGameHudPresenterTests
PlayMode tests for UnityGameHudPresenter. The presenter toggles a serialized HUD-root GameObject's active state. The private serialized field is injected via reflection to exercise both the active path and the null-guard path.
Inherited Members
Namespace: Serenity.UnityGameUi.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class UnityGameHudPresenterTests
Constructors
UnityGameHudPresenterTests()
Declaration
public UnityGameHudPresenterTests()
Methods
HideHud_DeactivatesRoot()
Declaration
public void HideHud_DeactivatesRoot()
Implements_IGameHudPresenter()
Declaration
public void Implements_IGameHudPresenter()
Methods_WithNullRoot_DoNotThrow()
Declaration
public void Methods_WithNullRoot_DoNotThrow()
SetUp()
Declaration
public void SetUp()
ShowHud_ActivatesRoot()
Declaration
public void ShowHud_ActivatesRoot()
TearDown()
Declaration
public void TearDown()
UpdateHud_HiddenState_DeactivatesRoot()
Declaration
public void UpdateHud_HiddenState_DeactivatesRoot()
UpdateHud_VisibleState_ActivatesRoot()
Declaration
public void UpdateHud_VisibleState_ActivatesRoot()
UpdateHud_WithAnExistingHostInTheScene_UsesItInsteadOfCreatingANewOne()
Regression test for the "host is a random call" bug: creating a host used to be something that
happened lazily on first show. Now UnityGameUiInstaller creates it at boot, and this
presenter must find that existing host rather than building a second one alongside it.
Declaration
public void UpdateHud_WithAnExistingHostInTheScene_UsesItInsteadOfCreatingANewOne()