public void GetEventInfoArgs_NullArgs()
        {
            var result = PiwikDataConverter.GetEventInfoArgs(null);

            Assert.IsNotNull(result);
            Assert.IsFalse(result.Any());
        }
        public void GetEventInfoArgs_MinimalArgs()
        {
            var info = new PiwikEventInfo(TestUrl, "test category", "test action");

            var result = PiwikDataConverter.GetEventInfoArgs(info);

            Assert.IsNotNull(result);
            AssertEqual(result, new[] { "e_c=test%20category", "e_a=test%20action" });
        }
        public void GetEventInfoArgs_AllArgs_ValueFloat()
        {
            var info = new PiwikEventInfo(TestUrl, "test category", "test action")
            {
                Name  = "event name",
                Value = 1230.456f
            };

            var result = PiwikDataConverter.GetEventInfoArgs(info);

            Assert.IsNotNull(result);
            AssertEqual(result, new[] { "e_c=test%20category", "e_a=test%20action", "e_n=event%20name", "e_v=1230.46" });
        }