Esempio n. 1
0
        public void ConstructorTest()
        {
            uint SiteID = 1;
            String apiUri = "http://demo.piwik.org";

            Tracker TrackerOne = new Tracker(SiteID, apiUri);
            Tracker TrackerTwo = new Tracker(SiteID, new System.Uri(apiUri));

            Assert.AreEqual(SiteID, TrackerOne.SiteID);
            Assert.AreEqual(SiteID, TrackerTwo.SiteID);
        }
Esempio n. 2
0
 public void InvalidURLInConstructor()
 {
     Tracker T = new Tracker(1, "foo");
 }