Beispiel #1
0
        public void Test_GetMyIssues_NotLogged_ShouldReturnErrorMessage()
        {
            var tracker = new GithubIssueTracker(new GithubIssueTrackerData());
            tracker.RegisterUser("Ivan", "qwerty", "qwerty");
            tracker.LoginUser("Ivan", "qwerty");

            tracker.CreateIssue("New issue2", "This is a new issue2", IssuePriority.High, new[] { "issue2" });
            tracker.CreateIssue("New issue1", "This is a new issue1", IssuePriority.High, new[] { "issue1" });
            tracker.LogoutUser();
            string message = tracker.GetMyIssues();

            Assert.AreEqual("There is no currently logged in user", message);
        }