public AssertionLogStream(CounterAssertion increment, CounterAssertion set, Action onError) { if (onError == null) { throw new ArgumentNullException("onError"); } if (increment == null && set == null) { throw new ArgumentNullException("increment and set"); } initializeDelegates(_onError = onError); if (increment != null) { _incrementRawCounter = increment; } if (set != null) { _setRawCounter = set; } }
public void AssertSetRawCounter(CounterAssertion set, Action onError) { ExecuteAssert(new AssertionLogStream(null, set, onError ?? _onAssertFailure)); }
public void AssertIncrementRawCounter(CounterAssertion increment, Action onError) { ExecuteAssert(new AssertionLogStream(increment, null, onError ?? _onAssertFailure)); }
public void AssertSetRawCounter(CounterAssertion set) { AssertSetRawCounter(set, null); }
public void AssertIncrementRawCounter(CounterAssertion increment) { AssertIncrementRawCounter(increment, null); }