public void GivenIWillCallTheEnableAppplicationTrackerMethod()
        {
            const string productVersion = "1.0.0.0";
            const string username       = "******";

            _tracker.EnableApplicationTracker(productVersion, username);
        }
Exemplo n.º 2
0
        public void RevulyticsTracker_DisableAppplicationTrackerTest()
        {
            var          tracker        = new RevulyticsTracker();
            const string productVersion = "1.0.0.0";
            const string infoVersion    = "Some extra info...";
            const string username       = "******";

            tracker.EnableApplicationTracker(productVersion, infoVersion, username);
            tracker.DisableApplicationTracker();
            Assert.AreEqual(RUIState.stopped, tracker.RuiSdk.GetState(), "Revulytics stopped");
        }
Exemplo n.º 3
0
        public void RevulyticsTracker_EnableApplicationTrackerTestWithCorrectConfig()
        {
            var          tracker        = new RevulyticsTracker();
            const string productVersion = "1.0.0.0";
            const string infoVersion    = "Some extra info...";
            const string username       = "******";

            tracker.EnableApplicationTracker(productVersion, infoVersion, username);
            Assert.IsTrue(tracker.RuiSdk.GetState() == RUIState.running || tracker.RuiSdk.GetState() == RUIState.startedNewRegRunning, "Revulytics Started");
            Assert.AreEqual(productVersion, tracker.ProductVersion);
            Assert.AreEqual(infoVersion, tracker.InformationalVersion);
            Assert.AreEqual(username, tracker.Username);
        }
Exemplo n.º 4
0
        public void EnableApplicationTrackerSdkException()
        {
            var          tracker        = new RevulyticsTracker();
            const string productVersion = "1.0.0.0";
            const string infoVersion    = "Some extra info...";
            const string username       = "******";

            tracker.EnableApplicationTracker(productVersion, infoVersion, username);
            Assert.AreEqual(tracker.EnableApplicationResultStatus, RUIResult.ok);
            Assert.AreEqual(productVersion, tracker.ProductVersion);
            Assert.AreEqual(infoVersion, tracker.InformationalVersion);
            Assert.AreEqual(username, tracker.Username);
        }