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.
Inherited Members
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()