Class TableColumnLayoutTests
Tests for TableColumnLayout, extracted for SerenityTableGui's resizable-column
header/rows. Exercises only the two invariants an IMGUI wrapper cannot assert on its own: a column never
goes below its minimum width, and a drag between two columns never changes their combined width.
Inherited Members
Namespace: Serenity.Shared.Tests.Layout
Assembly: Tests.dll
Syntax
public class TableColumnLayoutTests
Constructors
TableColumnLayoutTests()
Declaration
public TableColumnLayoutTests()
Methods
ClampDrag_APullFarLeft_StopsAtTheLeftMinimum()
Declaration
public void ClampDrag_APullFarLeft_StopsAtTheLeftMinimum()
ClampDrag_APullFarRight_StopsAtTheRightMinimum()
Declaration
public void ClampDrag_APullFarRight_StopsAtTheRightMinimum()
ClampDrag_ATypicalDrag_MovesWidthFromOneColumnToTheOther()
Declaration
public void ClampDrag_ATypicalDrag_MovesWidthFromOneColumnToTheOther()
ClampDrag_AtAnyDelta_PreservesTheCombinedWidth(float)
Declaration
public void ClampDrag_AtAnyDelta_PreservesTheCombinedWidth(float delta)
Parameters
| Type | Name | Description |
|---|---|---|
| float | delta |
ClampDrag_NeitherColumnEverGoesBelowItsMinimum()
Declaration
public void ClampDrag_NeitherColumnEverGoesBelowItsMinimum()
ClampDrag_PreservesTheCombinedWidth()
Declaration
public void ClampDrag_PreservesTheCombinedWidth()
Solve_AllColumnsTogether_NeverGoBelowTheirMinimums()
Declaration
public void Solve_AllColumnsTogether_NeverGoBelowTheirMinimums()
Solve_FixedColumn_NeverGoesBelowItsMinimum()
Declaration
public void Solve_FixedColumn_NeverGoesBelowItsMinimum()
Solve_FixedColumn_TakesItsRequestedWidth()
Declaration
public void Solve_FixedColumn_TakesItsRequestedWidth()
Solve_FlexColumn_NeverGoesBelowItsMinimum_EvenWhenNothingIsLeftOver()
Declaration
public void Solve_FlexColumn_NeverGoesBelowItsMinimum_EvenWhenNothingIsLeftOver()
Solve_SingleFlexColumn_TakesEverythingLeftAfterFixedColumns()
Declaration
public void Solve_SingleFlexColumn_TakesEverythingLeftAfterFixedColumns()
Solve_TwoFlexColumns_ShareTheLeftoverProportionallyToWeight()
Declaration
public void Solve_TwoFlexColumns_ShareTheLeftoverProportionallyToWeight()