Class HudSignalBinderTests
Characterization tests for HudSignalBinder's per-element ON_SIGNAL refresh binding, constructed
directly against a fake Serenity.GameUi.Infrastructure.Views.IHudSignalBindHost — the half of its surface
UnityHudHostComponentTests never targets (that suite covers the fixed
ShowHudElementSignal/HideHudElementSignal pair only). Direct construction is possible
because Serenity.UnityGameUi.Infrastructure grants InternalsVisibleTo to this test assembly.
Inherited Members
Namespace: Serenity.UnityGameUi.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class HudSignalBinderTests
Constructors
HudSignalBinderTests()
Declaration
public HudSignalBinderTests()
Methods
SetUp()
Declaration
public void SetUp()
SubscribeRefreshSignal_OnSignalElementWithUnresolvableSignalTypeName_BuildsWithoutThrowingAndNeverRefreshes()
Declaration
public void SubscribeRefreshSignal_OnSignalElementWithUnresolvableSignalTypeName_BuildsWithoutThrowingAndNeverRefreshes()
SubscribeRefreshSignal_OnSignalElementWithoutASignalDispatched_NeverRefreshesAfterBuild()
Declaration
public void SubscribeRefreshSignal_OnSignalElementWithoutASignalDispatched_NeverRefreshesAfterBuild()
SubscribeRefreshSignal_OnSignalElement_RefreshesWhenItsNamedSignalIsDispatched()
UnityHudElementView starts dirty (_isDirty = true by field initializer) and only
clears that flag on its first Tick(float) — driven here directly instead of
by UnityHudHostComponent.Update. So the very first tick after building re-reads regardless of
the element's trigger, and every test below burns that one free read before touching the state it
actually means to assert on — otherwise a broken ON_SIGNAL binding could pass by accident.
Declaration
public void SubscribeRefreshSignal_OnSignalElement_RefreshesWhenItsNamedSignalIsDispatched()
TearDown()
Declaration
public void TearDown()
UnsubscribeAll_ReleasesTheOnSignalRefreshBinding_SoDispatchingAfterwardsDoesNotThrow()
Declaration
public void UnsubscribeAll_ReleasesTheOnSignalRefreshBinding_SoDispatchingAfterwardsDoesNotThrow()