Class SerenityEditorTextFieldCommitTests
Tests for Serenity.Global.Infrastructure.Editor.SerenityEditorTextFieldCommit's pending/flush lifecycle, driven entirely
through its internal test seams — no real AssetDatabase or Undo traffic, and the real
EditorApplication.update tick is never touched (its subscribe/unsubscribe seams are stubbed
out for the duration of each test). Editor-only.
Inherited Members
Namespace: Serenity.UnityGlobal.Tests.Editor
Assembly: Tests.Editor.dll
Syntax
public class SerenityEditorTextFieldCommitTests
Constructors
SerenityEditorTextFieldCommitTests()
Declaration
public SerenityEditorTextFieldCommitTests()
Methods
EndActiveTextEditing_EndsTheActiveTextEdit()
Declaration
public void EndActiveTextEditing_EndsTheActiveTextEdit()
EndActiveTextEditing_WithAPendingSession_FlushesItImmediately()
Declaration
public void EndActiveTextEditing_WithAPendingSession_FlushesItImmediately()
FlushPendingSaves_CalledTwiceForTheSameSession_SavesOnlyOnce()
Declaration
public void FlushPendingSaves_CalledTwiceForTheSameSession_SavesOnlyOnce()
FlushPendingSaves_NothingPending_IsANoOp()
Declaration
public void FlushPendingSaves_NothingPending_IsANoOp()
SaveAssetsWhenEditingFinished_CapturesTheUndoGroupOnlyOncePerSession()
Declaration
public void SaveAssetsWhenEditingFinished_CapturesTheUndoGroupOnlyOncePerSession()
SaveAssetsWhenEditingFinished_FastPathWithAStalePendingSession_FlushesThatSession()
Declaration
public void SaveAssetsWhenEditingFinished_FastPathWithAStalePendingSession_FlushesThatSession()
SaveAssetsWhenEditingFinished_ManyCallsWhileEditingThenFlush_SavesExactlyOnce()
Declaration
public void SaveAssetsWhenEditingFinished_ManyCallsWhileEditingThenFlush_SavesExactlyOnce()
SaveAssetsWhenEditingFinished_NotEditing_SavesImmediately()
Declaration
public void SaveAssetsWhenEditingFinished_NotEditing_SavesImmediately()
SaveAssetsWhenEditingFinished_WhileEditing_DefersTheSave()
Declaration
public void SaveAssetsWhenEditingFinished_WhileEditing_DefersTheSave()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()