logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ViewportRectTests

    Guards ViewportRect — the value object every split-screen and active-camera contract is expressed in. These are the load-bearing contracts: construction must clamp out-of-range components into 0..1 (a computed or untrusted rect can never describe an off-screen viewport), value equality must compare by component (so layouts and assignments can be asserted structurally), and Full must be the canonical full-screen rect every degradation path relies on.

    Inheritance
    object
    ViewportRectTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.GameCamera.Tests.Domain
    Assembly: Tests.dll
    Syntax
    public class ViewportRectTests

    Constructors

    ViewportRectTests()

    Declaration
    public ViewportRectTests()

    Methods

    Constructor_ClampsComponentsAboveOne()

    Declaration
    public void Constructor_ClampsComponentsAboveOne()

    Constructor_ClampsComponentsBelowZero()

    Declaration
    public void Constructor_ClampsComponentsBelowZero()

    Equals_WhenDifferentComponents_ReturnsFalse()

    Declaration
    public void Equals_WhenDifferentComponents_ReturnsFalse()

    Equals_WhenSameComponents_ReturnsTrue()

    Declaration
    public void Equals_WhenSameComponents_ReturnsTrue()

    Full_EqualsZeroZeroOneOne()

    Declaration
    public void Full_EqualsZeroZeroOneOne()

    GetHashCode_WhenEqualInstances_AreConsistent()

    Declaration
    public void GetHashCode_WhenEqualInstances_AreConsistent()
    In this article
    © 2026 Serenity. All Rights Reserved