Runtime/UnityEventListener.cs
/// <summary>
/// Asserts that exactly the amount of provided invocations took place.
/// </summary>
/// <param name="expectedInvocations">Amount of invocations</param>
Asserts that exactly the amount of provided invocations took place.
Asserts that exactly the amount of provided invocations took place .
public void AssertInvocations(int expectedInvocations)
        {
            var actualInvocations = Invocations;
            Assert.AreEqual(expectedInvocations, actualInvocations, $"Event {_name} should have been invoked {expectedInvocations} times but was {actualInvocations}");
        }
public void AssertInvocations ( int expectedInvocations ) { var actualInvocations = Invocations ; Assert . AreEqual ( expectedInvocations , actualInvocations , $" Event  { _name }  should have been invoked  { expectedInvocations }  times but was  { actualInvocations } " ) ; }
Asserts that exactly the amount of provided invocations took place.
Asserts that exactly the amount of provided invocations took place .
expectedInvocations
int
Amount of invocations
Amount of invocations