Class SplitScreenLayoutCalculatorTests
Guards Compute(int, SplitScreenLayout) — the single place viewport rects are derived from a player count and layout. These are the load-bearing contracts: a single player always gets the full screen regardless of layout, two-player layouts must produce the exact halves engine cameras will bind to, three/four-player counts must produce the exact quadrant slots, counts above four must degrade to one full rect per player (since no automatic layout covers more than four viewports), and a non-positive count must fail loudly rather than silently return an empty or malformed list.
Inherited Members
Namespace: Serenity.GameCamera.Tests.Domain
Assembly: Tests.dll
Syntax
public class SplitScreenLayoutCalculatorTests
Constructors
SplitScreenLayoutCalculatorTests()
Declaration
public SplitScreenLayoutCalculatorTests()
Methods
Compute_WhenFourPlayers_ReturnsFourQuadrants()
Declaration
public void Compute_WhenFourPlayers_ReturnsFourQuadrants()
Compute_WhenMoreThanFourPlayers_DegradesToOneFullRectPerPlayer()
Declaration
public void Compute_WhenMoreThanFourPlayers_DegradesToOneFullRectPerPlayer()
Compute_WhenOnePlayer_ReturnsSingleFullRectRegardlessOfLayout()
Declaration
public void Compute_WhenOnePlayer_ReturnsSingleFullRectRegardlessOfLayout()
Compute_WhenPlayerCountIsNegative_Throws()
Declaration
public void Compute_WhenPlayerCountIsNegative_Throws()
Compute_WhenPlayerCountIsZero_Throws()
Declaration
public void Compute_WhenPlayerCountIsZero_Throws()
Compute_WhenThreePlayers_ReturnsThreeQuadrantSlots()
Declaration
public void Compute_WhenThreePlayers_ReturnsThreeQuadrantSlots()
Compute_WhenTwoPlayersHorizontal_ReturnsLeftThenRightHalves()
Declaration
public void Compute_WhenTwoPlayersHorizontal_ReturnsLeftThenRightHalves()
Compute_WhenTwoPlayersVertical_ReturnsTopThenBottomHalves()
Declaration
public void Compute_WhenTwoPlayersVertical_ReturnsTopThenBottomHalves()