public void HandleOccurenceEvent_FormattedOccurenceCalled_WithCorrectArguments() { DateTime date = DateTime.Now; _occurenceSource.OccurenceDetectedEvent += Raise.EventWith <OccurrenceEventArgs> (new OccurrenceEventArgs { ObservedTrack = _observedTrack, OccurenceTrack = _occurenceTrack, OccurenceTime = date }); _formatter.Received(1).FormatOccurence(Arg.Is(_observedTrack), Arg.Is(_occurenceTrack), Arg.Is(date)); }