public void GetBaseEventInfoArgs_MinimalArgs()
        {
            var info = new PiwikViewInfo(TestUrl);

            var result = PiwikDataConverter.GetBaseEventInfoArgs(WithTestTimestamp(info));

            Assert.IsNotNull(result);
            AssertEqual(result, new[] { "url=https%3A%2F%2Fwww.test.com%2Fqwe%3Fasd%3Dzxc", "h=10", "m=20", "s=30" });
        }
        public void GetViewInfoArgs_MinimalArgs()
        {
            var info = new PiwikViewInfo(TestUrl);

            var result = PiwikDataConverter.GetViewInfoArgs(info);

            Assert.IsNotNull(result);
            Assert.IsFalse(result.Any());
        }
        public void GetViewInfoArgs_AllArgs()
        {
            var info = new PiwikViewInfo(TestUrl)
            {
                ViewName = "view name",
                ViewTime = TimeSpan.FromMilliseconds(1230.4)
            };

            var result = PiwikDataConverter.GetViewInfoArgs(info);

            Assert.IsNotNull(result);
            AssertEqual(result, new[] { "action_name=view%20name", "gt_ms=1230" });
        }