Class HudElementChangeFeedbackDefaultsTests
EditMode tests for UnityHudElementDefinition's change-feedback fields on a legacy element: one serialized before this feature existed deserializes every one of them at its C# default (empty id, an ANY direction, a zero cooldown) rather than the field initializers a freshly constructed instance gets, so the feature must read as fully off with no manual migration step.
Inherited Members
Namespace: Serenity.GameUi.Tests.Editor.Builder
Assembly: Serenity.GameUi.Tests.Editor.dll
Syntax
public class HudElementChangeFeedbackDefaultsTests
Constructors
HudElementChangeFeedbackDefaultsTests()
Declaration
public HudElementChangeFeedbackDefaultsTests()
Methods
ChangeFeedback_ANewlyCreatedElement_DefaultsToTheAuthoringCooldown()
Declaration
public void ChangeFeedback_ANewlyCreatedElement_DefaultsToTheAuthoringCooldown()
ChangeFeedback_DeserializedAsUnset_ExposesAnInertConfig()
Declaration
public void ChangeFeedback_DeserializedAsUnset_ExposesAnInertConfig()
ChangeFeedback_DeserializedWithANegativeCooldown_NormalizesToZero()
Declaration
public void ChangeFeedback_DeserializedWithANegativeCooldown_NormalizesToZero()
TearDown()
Declaration
public void TearDown()