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