logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ObjectFieldDropAssert

    The undo half of an inspector object-field test: the drop lands in the field, and one Undo takes it back out, which only happens when the field recorded the object that owns it before it wrote.

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

    Methods

    DropIsUndoable(Action, Func<Object>, Object)

    Runs renderField in a fresh undo group, asserts dropped landed in the field readField reads, then undoes and asserts the field is empty again.

    Declaration
    public static void DropIsUndoable(Action renderField, Func<Object> readField, Object dropped)
    Parameters
    Type Name Description
    Action renderField
    Func<Object> readField
    Object dropped
    In this article
    © 2026 Serenity. All Rights Reserved