Class SignalEmitterComponentUnityEventBindingTests
Pins the contract that lets a designer wire SignalEmitterComponent into a Button's On Click without writing C#.
Inherited Members
Namespace: Serenity.EventDispatcher.Tests.Editor
Assembly: Serenity.EventDispatcher.Tests.Editor.dll
Syntax
public class SignalEmitterComponentUnityEventBindingTests
Remarks
A UnityEngine.Events.UnityEvent binds a UnityEngine.Events.UnityAction, so only a void method can be invoked. A bool-returning one serializes into the persistent-call list happily and then throws on the first click in Play Mode, which is invisible to every edit-mode check — hence these tests bind the delegate the same way Unity does at runtime rather than merely asserting the methods exist.
Constructors
SignalEmitterComponentUnityEventBindingTests()
Declaration
public SignalEmitterComponentUnityEventBindingTests()
Methods
DispatchFirstSignal_IsBindableAsAUnityAction()
Declaration
public void DispatchFirstSignal_IsBindableAsAUnityAction()
DispatchFirst_TheBoolForm_CannotBeBound_WhichIsWhyTheVoidFormExists()
Declaration
public void DispatchFirst_TheBoolForm_CannotBeBound_WhichIsWhyTheVoidFormExists()
DispatchSignal_IsBindableAsAOneStringUnityAction()
Declaration
public void DispatchSignal_IsBindableAsAOneStringUnityAction()