namespace Test.Zinnia.Utility.Mock
{
///
/// The UnityEventListenerMock creates a simple mechanism of registering a listener with a UnityEvent and checking if the event was emitted.
///
public class UnityEventListenerMock
{
///
/// The state of whether the event emitted was received by the listener.
///
public bool Received
{
get;
private set;
}
///
/// The Reset method resets the listener state.
///
public virtual void Reset()
{
Received = false;
}
public virtual void Listen()
{
Received = true;
}
public virtual void Listen(T0 a)
{
Received = true;
}
public virtual void Listen(T0 a, T1 b)
{
Received = true;
}
public virtual void Listen(T0 a, T1 b, T2 c)
{
Received = true;
}
public virtual void Listen(T0 a, T1 b, T2 c, T3 d)
{
Received = true;
}
}
}