public void Expect(RaiseEventExpectation specification) { if (_arguments.Count > 0) { var lastEvent = _arguments.Dequeue(); if (lastEvent != null) { specification.CompareTo(lastEvent); } } else { Assert.Fail("Event was not raised."); } }
public static RaiseEventExpectation AsEvent(this NotifyCollectionChangedAction action) { var result = new RaiseEventExpectation() { Action = action }; return result; }