logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class CreateLoggingProfileWindowSinkResolutionTests

    Proves CreateLoggingProfileWindow rebuilds the three sink resolutions whenever they are missing instead of only when Open runs. They are derived, non-serialized state, so a domain reload leaves them null on a window the author left open — and every sink section and Summary bullet dereferences them on every repaint, which threw a NullReferenceException per frame until the window resolved them from its own OnEnable and before each draw.

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

    UnityEngine.ScriptableObject.CreateInstance(System.Type) reproduces the post-reload state exactly for this defect: Unity fires OnEnable on the restored window and never re-runs Open, which is the only thing that used to resolve them.

    Constructors

    CreateLoggingProfileWindowSinkResolutionTests()

    Declaration
    public CreateLoggingProfileWindowSinkResolutionTests()

    Methods

    OnEnableWithoutOpen_ResolvesTheSinkSingletonsEveryRepaintDereferences()

    Declaration
    public void OnEnableWithoutOpen_ResolvesTheSinkSingletonsEveryRepaintDereferences()

    TearDown()

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