logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SettingsRowReferenceAuditorTests

    EditMode tests for SettingsRowReferenceAuditor against real scratch assets: a TestReferencingFoundationSettings asset with a reference to TestFoundationSettings that was never assigned keeps the row InProject with a warning, naming the field and the system to configure first, and offers Assign; assigning the sole project-owned candidate through SettingsReferenceInspector clears the warning. A reference that WAS assigned and is now dangling (its target deleted) downgrades the row to Invalid instead. Only a project-owned row (InProject) is audited at all — a shipped (InPackage) row's unassigned reference falls back to the factory default and is never flagged.

    Inheritance
    object
    SettingsRowReferenceAuditorTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.CreateGame.Tests.Editor
    Assembly: Serenity.CreateGame.Tests.Editor.dll
    Syntax
    public class SettingsRowReferenceAuditorTests

    Constructors

    SettingsRowReferenceAuditorTests()

    Declaration
    public SettingsRowReferenceAuditorTests()

    Methods

    Audit_AfterAssigningTheSoleProjectOwnedCandidate_ReturnsToInProject()

    Declaration
    public void Audit_AfterAssigningTheSoleProjectOwnedCandidate_ReturnsToInProject()

    Audit_CollectionRow_UnassignedReferenceField_IsNotDowngraded()

    Declaration
    public void Audit_CollectionRow_UnassignedReferenceField_IsNotDowngraded()

    Audit_DanglingReferenceField_DowngradesRowToInvalid()

    Declaration
    public void Audit_DanglingReferenceField_DowngradesRowToInvalid()

    Audit_ReferenceAlreadyAssigned_LeavesRowInProject()

    Declaration
    public void Audit_ReferenceAlreadyAssigned_LeavesRowInProject()

    Audit_ShippedRowWithUnassignedReference_IsNeverAudited()

    Declaration
    public void Audit_ShippedRowWithUnassignedReference_IsNeverAudited()

    Audit_UnassignedReferenceField_KeepsRowInProjectWithWarning()

    Declaration
    public void Audit_UnassignedReferenceField_KeepsRowInProjectWithWarning()

    OneTimeSetUp()

    Declaration
    public static void OneTimeSetUp()

    OneTimeTearDown()

    Declaration
    public static void OneTimeTearDown()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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