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);
        }
Exemplo n.º 2
0
        public void StopAndSend_SendsAnalytic()
        {
            mAnalyticsTimerUnderTest.StopAndSendAnalytic();

            mAnalytics.Received().SendCustomEvent(ANALYTIC_NAME, Arg.Any <IDictionary <string, object> >());
        }