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); }
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); }