Class HudThresholdRulesTests
Tests for HudThresholdRules: band selection is inclusive on the upper bound and first-match, there is no base colour above every band, and every representation kind lands on the right side of the threshold-colour support matrix.
Inherited Members
Namespace: Serenity.GameUi.Tests.Application
Assembly: Tests.dll
Syntax
public class HudThresholdRulesTests
Constructors
HudThresholdRulesTests()
Declaration
public HudThresholdRulesTests()
Methods
AreBoundsStrictlyAscending_WithADescendingPair_IsFalse()
Declaration
public void AreBoundsStrictlyAscending_WithADescendingPair_IsFalse()
AreBoundsStrictlyAscending_WithARepeatedBound_IsFalse()
Declaration
public void AreBoundsStrictlyAscending_WithARepeatedBound_IsFalse()
AreBoundsStrictlyAscending_WithASingleBound_IsTrue()
Declaration
public void AreBoundsStrictlyAscending_WithASingleBound_IsTrue()
AreBoundsStrictlyAscending_WithAnEmptyOrNullList_IsTrue()
Declaration
public void AreBoundsStrictlyAscending_WithAnEmptyOrNullList_IsTrue()
AreBoundsStrictlyAscending_WithIncreasingBounds_IsTrue()
Declaration
public void AreBoundsStrictlyAscending_WithIncreasingBounds_IsTrue()
SelectBandIndex_AboveEveryBound_ReturnsNoBand()
Declaration
public void SelectBandIndex_AboveEveryBound_ReturnsNoBand()
SelectBandIndex_BelowTheFirstBound_ReturnsTheFirstBand()
Declaration
public void SelectBandIndex_BelowTheFirstBound_ReturnsTheFirstBand()
SelectBandIndex_BetweenTwoBounds_ReturnsTheHigherBand()
Declaration
public void SelectBandIndex_BetweenTwoBounds_ReturnsTheHigherBand()
SelectBandIndex_ExactlyOnABound_IsInclusive()
Declaration
public void SelectBandIndex_ExactlyOnABound_IsInclusive()
SelectBandIndex_NotANumber_ReturnsNoBand()
Declaration
public void SelectBandIndex_NotANumber_ReturnsNoBand()
SelectBandIndex_WithANullList_ReturnsNoBand()
Declaration
public void SelectBandIndex_WithANullList_ReturnsNoBand()
SelectBandIndex_WithASingleBand_MatchesAtOrBelowAndMissesAbove()
Declaration
public void SelectBandIndex_WithASingleBand_MatchesAtOrBelowAndMissesAbove()
SelectBandIndex_WithAnEmptyList_ReturnsNoBand()
Declaration
public void SelectBandIndex_WithAnEmptyList_ReturnsNoBand()
SupportsThresholdColors_MatchesTheDocumentedSupportMatrix(HudRepresentationKind, bool)
Declaration
public void SupportsThresholdColors_MatchesTheDocumentedSupportMatrix(HudRepresentationKind kind, bool expected)
Parameters
| Type | Name | Description |
|---|---|---|
| HudRepresentationKind | kind | |
| bool | expected |