public virtual void Setup()
        {
            MATTestWrapper.InitializeValues(MATTestConstants.ADVERTISER_ID, MATTestConstants.KEY);
            MATTestWrapper.Instance.SetMATEventQueueWrapper();
            MATTestWrapper.Instance.SetMatTestRequest(this);

            MATTestWrapper.Instance.SetAllowDuplicates(true);
            MATTestWrapper.Instance.SetDebugMode(true);
            MATTestWrapper.Instance.SetPackageName(MATTestConstants.PACKAGE_NAME);

            param = new MATTestParams();
        }
示例#2
0
        public void TestEventDate2()
        {
            DateTime date         = new DateTime(2014, 1, 15, 14, 13, 12);
            long     expectedTime = MATTestWrapper.GetUnixTimestamp(date);

            MATTestWrapper.Instance.SetEventDate2(date);
            MATTestWrapper.Instance.MeasureAction("registration");
            MATTestParams.Sleep(3000);

            AssertKeyValue("date2", expectedTime.ToString());
            Assert.IsTrue(param.CheckDefaultValues());
        }