コード例 #1
0
 public static void StartApp(bool optOutStatus)
 {
     // Convenient for the OptOutTest which must pass optOutStatus = true
     if (Crittercism.TestNetwork == null)
     {
         // First time being called by the test suite.
         Cleanup();
     }
     Crittercism.SetOptOutStatus(optOutStatus);
     Crittercism.Init(VALID_APPID);
 }
コード例 #2
0
 public static void Cleanup()
 {
     // This method is for clean all the possible variables that may be will used by another unit test
     TestNetwork().Cleanup();
     Crittercism.TestNetwork = TestNetwork();
     // TODO: AppLoadTest3 forcing a few messy cleanup lines here.  Can this better?
     APM.enabled = true;
     UserflowReporter.enabled = true;
     Crittercism.SetOptOutStatus(false);
     if (Crittercism.MessageQueue != null)
     {
         Crittercism.MessageQueue.Clear();
     }
     StorageHelper.Cleanup();
 }