logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityModalOptionsBuilderTests

    Tests for Serenity.Modal.Infrastructure.Factories.UnityModalOptionsBuilder.CreateModalOptions(System.Collections.Generic.IReadOnlyList{Serenity.Ui.Domain.Entities.UiOption},Serenity.Ui.Domain.Interfaces.IUiThemeDefinition). Only the option-free guard path is unit-testable without real prefab templates: a null options list returns an empty interactable list before the component creator is ever touched (so it is safe to pass a null creator). Rendering actual options requires a populated UI theme and prefab hierarchy and is left to PlayMode/scene coverage.

    Inheritance
    object
    UnityModalOptionsBuilderTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityModal.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityModalOptionsBuilderTests

    Constructors

    UnityModalOptionsBuilderTests()

    Declaration
    public UnityModalOptionsBuilderTests()

    Methods

    CreateModalOptions_NullOptions_ReturnsEmptyList()

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