Пример #1
0
        public void GivenMoreTeamsCalculateCorrectData()
        {
            var sut    = new MinimumGoalDifferenceTeamFinder(new TeamDataProviderStub());
            var result = sut.FindTeam();

            Assert.Equal("Liverpool", result);
        }
Пример #2
0
        public void GivenOneTeamCalculateCorrectData()
        {
            var teamDataProvider = new Mock <ITeamDataProvider>();

            teamDataProvider.Setup(m => m.GetTeamData()).Returns(
                new List <TeamData>
            {
                new TeamData("Aston_Villa", 1, 0)
            }
                );

            var sut    = new MinimumGoalDifferenceTeamFinder(teamDataProvider.Object);
            var result = sut.FindTeam();

            Assert.Equal("Aston_Villa", result);
        }