public void AddPersistentListener(TestityAction call, TestityEventCallState callState) { int persistentEventCount = base.GetPersistentEventCount(); base.AddPersistentListener(); this.RegisterPersistentListener(persistentEventCount, call); base.SetPersistentListenerState(persistentEventCount, callState); }
/// <summary> /// <para>Modify the execution state of a persistent listener.</para> /// </summary> /// <param name="index">Index of the listener to query.</param> /// <param name="state">State to set.</param> public void SetPersistentListenerState(int index, TestityEventCallState state) { TestityPersistentCall listener = this.m_PersistentCalls.GetListener(index); if (listener != null) { listener.callState = state; } this.DirtyPersistentCalls(); }