CollectedSizes

class CollectedSizes
kotlin.Any
   ↳ androidx.ui.test.CollectedSizes

Small utility class to provide convenient assertion for width and height for some PxSize. It also provides DensityScope while asserting.

Summary

Public constructors

<init>(size: PxSize, density: Density)

Small utility class to provide convenient assertion for width and height for some PxSize.

Public methods

CollectedSizes
assertHeightEqualsTo(expectedHeight: Dp)

CollectedSizes
assertHeightEqualsTo(expectedHeightPx: DensityScope.() -> IntPx)

CollectedSizes
assertIsSquareWithSize(expectedSize: Dp)

CollectedSizes
assertIsSquareWithSize(expectedSquarePx: DensityScope.() -> IntPx)

CollectedSizes
assertWidthEqualsTo(expectedWidth: Dp)

CollectedSizes
assertWidthEqualsTo(expectedWidthPx: DensityScope.() -> IntPx)

Public constructors

<init>

CollectedSizes(
    size: PxSize,
    density: Density)

Small utility class to provide convenient assertion for width and height for some PxSize. It also provides DensityScope while asserting.

Public methods

assertHeightEqualsTo

fun assertHeightEqualsTo(expectedHeight: Dp): CollectedSizes

assertHeightEqualsTo

fun assertHeightEqualsTo(expectedHeightPx: DensityScope.() -> IntPx): CollectedSizes

assertIsSquareWithSize

fun assertIsSquareWithSize(expectedSize: Dp): CollectedSizes

assertIsSquareWithSize

fun assertIsSquareWithSize(expectedSquarePx: DensityScope.() -> IntPx): CollectedSizes

assertWidthEqualsTo

fun assertWidthEqualsTo(expectedWidth: Dp): CollectedSizes

assertWidthEqualsTo

fun assertWidthEqualsTo(expectedWidthPx: DensityScope.() -> IntPx): CollectedSizes