示例#1
0
        public void TestDashContextForOwnerAndRepo()
        {
            var vm = new DashboardMenuViewModel {
                SelectedOwnerId = "owner", SelectedRepoId = "repo"
            };

            vm.GetDashContext().Should().Be("owner/repo");
        }
示例#2
0
        public void TestDashContextPreservesCase()
        {
            var vm = new DashboardMenuViewModel {
                SelectedOwnerId = "OwnerA", SelectedRepoId = "RepoName"
            };

            vm.GetDashContext().Should().Be("OwnerA/RepoName");
        }
示例#3
0
        public void TestDashContextForOwnerOnly()
        {
            var vm = new DashboardMenuViewModel {
                SelectedOwnerId = "owner"
            };

            vm.GetDashContext().Should().Be("owner");
        }