Namespace Serenity.UnityModal.Tests.Infrastructure
Classes
UnityModalComponentFactoryTests
Tests for Serenity.Modal.Infrastructure.Views.Factories.UnityModalComponentFactory's value-persistence logic (SetOptionValue and
the bounds/null guards of ShiftOptionValue) and the CreateUiComponent validation guards.
The component-mutating branches of ShiftOptionValue require a real interactable component and are
covered only through their early-return guards here.
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.
UnityShowModalComponentFactoryTests
Tests for Serenity.Modal.Infrastructure.Views.Factories.UnityShowModalComponentFactory.CreateComponent``3(``1,``2): it must create a GameObject,
attach a UnityShowModalComponent, push parameters into it, and return the attached element.