logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ObjectUtilsTypeResolutionTests

    Tests for GetTypeFromCurrentDomainAssemblies(string).
    The lookup used to scan every assembly — materializing every type, twice — on each call that missed the Type.GetType fast path, which measured at seconds per call and froze the editor on every keystroke of a partial type name. It now answers from a lazily built index. These tests pin the resolution semantics the index must reproduce exactly; the speed itself was verified by measurement.

    Inheritance
    object
    ObjectUtilsTypeResolutionTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Shared.Tests.Utils
    Assembly: Tests.dll
    Syntax
    public class ObjectUtilsTypeResolutionTests

    Constructors

    ObjectUtilsTypeResolutionTests()

    Declaration
    public ObjectUtilsTypeResolutionTests()

    Methods

    ExactFullName_WinsOverACaseInsensitiveShortMatch()

    Declaration
    public void ExactFullName_WinsOverACaseInsensitiveShortMatch()

    Misses_ReturnNull(string)

    Declaration
    public void Misses_ReturnNull(string typeName)
    Parameters
    Type Name Description
    string typeName

    RepeatedDistinctMisses_AreAnsweredFromTheIndex()

    The freeze reproduced in miniature: every keystroke of a partial name is a distinct miss. Distinct misses must not each pay a scan — one indexed, the rest answer from it.

    Declaration
    public void RepeatedDistinctMisses_AreAnsweredFromTheIndex()

    Resolves_AnAssemblyQualifiedNameThroughTheFastPath()

    Declaration
    public void Resolves_AnAssemblyQualifiedNameThroughTheFastPath()

    Resolves_ByDottedSuffixOfTheFullName()

    Declaration
    public void Resolves_ByDottedSuffixOfTheFullName()

    Resolves_ByExactFullName()

    Declaration
    public void Resolves_ByExactFullName()

    Resolves_ByShortName()

    Declaration
    public void Resolves_ByShortName()

    Resolves_ByShortNameIgnoringCase()

    Declaration
    public void Resolves_ByShortNameIgnoringCase()

    ResolvingTwice_ReturnsTheSameType()

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