Exemplo n.º 1
0
        public void Should_Choose_Right_Color_When_Get_Visitor_Shirt_Color(string teamColors, string visitorColors, string visitorMatchColor)
        {
            long teamId           = 1;
            long visitorTeamId    = 2;
            var  teamColorList    = teamColors.Split(";");
            var  visitorColorList = visitorColors.Split(";");

            var manager = new SoccerTeamsManager.SoccerTeamsManager();

            manager.AddTeam(teamId, $"Time {teamId}", DateTime.Now, teamColorList[0], teamColorList[1]);
            manager.AddTeam(visitorTeamId, $"Time {visitorTeamId}", DateTime.Now, visitorColorList[0], visitorColorList[1]);

            Assert.Equal(visitorMatchColor, manager.GetVisitorShirtColor(teamId, visitorTeamId));
        }