public void Write_With_Category_Null_Does_Nothing(
     AppCenterTraceListener sut,
     string category)
 {
     sut.Write(null as object, category);
     AssertDoesNothing(sut);
 }
 public void Write_Exception_Invokes_Crashes_TrackError(
     AppCenterTraceListener sut,
     Exception exception)
 {
     sut.Write(exception);
     Mock.Get(sut.Crashes)
     .Verify(c => c.TrackError(exception, null));
 }
 public void Write_AnalyticsEvent_Invokes_Analytics_TrackEvent(
     AppCenterTraceListener sut,
     AnalyticsEvent analyticsEvent)
 {
     sut.Write(analyticsEvent);
     Mock.Get(sut.Analytics)
     .Verify(c => c.TrackEvent(analyticsEvent.EventName, analyticsEvent.Properties));
 }
 public void Write_With_Category_Exception_Invokes_Crashes_TrackError(
     AppCenterTraceListener sut,
     Exception exception,
     string category)
 {
     sut.Write(exception, category);
     Mock.Get(sut.Crashes)
     .Verify(c => c.TrackError(exception, null));
 }
 public void Write_Null_Does_Nothing(
     AppCenterTraceListener sut)
 {
     sut.Write(null as object);
     AssertDoesNothing(sut);
 }