logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ActiveCameraSelectorTests

    Guards TrySelect(IReadOnlyList<CameraCandidate>, out CameraCandidate) — the depth-priority policy used whenever no explicit override or explicit selection picks the active camera. These are the load-bearing contracts: only screen-drawing candidates are eligible regardless of depth, the highest depth among eligible candidates wins, and an empty or all-ineligible input must fail cleanly rather than return a default candidate silently.

    Inheritance
    object
    ActiveCameraSelectorTests
    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 ActiveCameraSelectorTests

    Constructors

    ActiveCameraSelectorTests()

    Declaration
    public ActiveCameraSelectorTests()

    Methods

    TrySelect_ExcludesCandidatesThatDoNotDrawToScreen()

    Declaration
    public void TrySelect_ExcludesCandidatesThatDoNotDrawToScreen()

    TrySelect_PicksHighestDepthAmongDrawingCandidates()

    Declaration
    public void TrySelect_PicksHighestDepthAmongDrawingCandidates()

    TrySelect_WhenListEmpty_ReturnsFalse()

    Declaration
    public void TrySelect_WhenListEmpty_ReturnsFalse()

    TrySelect_WhenNoCandidateDrawsToScreen_ReturnsFalse()

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