public void OnSendMessage_CustomAnalyticIsSent() { IUnityAnalytics okAnalytics = GetAnalyticsForResult(AnalyticsResult.Ok); mManagerUnderTest = new UnityAnalyticsManager(okAnalytics); MyMessenger.Instance.Send <string, IDictionary <string, object> >(LibraryAnalyticEvents.SEND_ANALYTIC_EVENT, ANALYTIC_NAME, ANALYTIC_DATA); okAnalytics.Received().SendCustomEvent(ANALYTIC_NAME, ANALYTIC_DATA); }
public void StopAndSend_SendsAnalytic() { mAnalyticsTimerUnderTest.StopAndSendAnalytic(); mAnalytics.Received().SendCustomEvent(ANALYTIC_NAME, Arg.Any <IDictionary <string, object> >()); }