Ejemplo n.º 1
0
 public void TrackOutcome_NullOutcomeId_ThrowException([NoAutoProperties] TrackerService trackerService, ITracker tracker)
 {
     tracker.IsActive.Returns(true);
     using (new TrackerSwitcher(tracker))
     {
         trackerService.Invoking(x => x.TrackOutcome(null)).ShouldThrow <ArgumentNullException>();
     }
 }
Ejemplo n.º 2
0
 public void TrackPageEvent_NullEvent_ShouldThrowArgumentException(TrackerService trackerService)
 {
     trackerService.Invoking(x => x.TrackPageEvent(null)).ShouldThrow <ArgumentNullException>();
 }