Esempio n. 1
0
        public void PlayoffMatchTitleTest(byte howFarFromFinal)
        {
            PlayOffStage   gs = new PlayOffStage(howFarFromFinal);
            MatchModelView m  = new MatchModelView(new Match()
            {
                Stage = gs
            });

            //I tested GetStageName in other Metod, so i assume, that gs.GetStageName is correct
            Assert.AreEqual(gs.GetStageName(), m.GameTitle);
        }
Esempio n. 2
0
        public void GroupMatchTitleTest(string groupName, byte roundOf, byte maxRounds, string expectedTitle)
        {
            GroupSeason g = new GroupSeason()
            {
                Name = groupName
            };
            GroupStage gs = new GroupStage()
            {
                Round = roundOf, MaxRound = maxRounds
            };
            MatchModelView m = new MatchModelView(new Match()
            {
                Group = g, Stage = gs
            });

            Assert.AreEqual(expectedTitle, m.GameTitle);
        }