logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class AdoptedIdentityRulesTests

    Tests for AdoptedIdentityRules: the pure decision behind adoption's Id renaming, moved here (from Serenity.CreateGame.Infrastructure.Editor.Adoption) alongside the declarative reference table its RenamedId(string) pairing feeds (FoundationReferenceIndex's adopted-counterpart lookup). Every cloned asset is renamed now — there is no singleton exception left to test.

    Inheritance
    object
    AdoptedIdentityRulesTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Global.Tests.Application
    Assembly: Tests.dll
    Syntax
    public class AdoptedIdentityRulesTests

    Constructors

    AdoptedIdentityRulesTests()

    Declaration
    public AdoptedIdentityRulesTests()

    Methods

    IsAdoptedId_EmptyId_ReturnsFalse()

    Declaration
    public void IsAdoptedId_EmptyId_ReturnsFalse()

    IsAdoptedId_OriginalId_ReturnsFalse()

    Declaration
    public void IsAdoptedId_OriginalId_ReturnsFalse()

    IsAdoptedId_SuffixedId_ReturnsTrue()

    Declaration
    public void IsAdoptedId_SuffixedId_ReturnsTrue()

    RenamedId_AlreadySuffixed_IsIdempotent()

    Declaration
    public void RenamedId_AlreadySuffixed_IsIdempotent()

    RenamedId_EmptyId_ReturnsUnchanged()

    Declaration
    public void RenamedId_EmptyId_ReturnsUnchanged()

    RenamedId_OriginalId_AppendsProjectSuffix()

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