public void Should20FirstPlayersNames()
        {
            var cup   = new FIFACupStats();
            var names = new List <string>()
            {
                "C. Ronaldo dos Santos Aveiro",
                "Lionel Messi",
                "Neymar da Silva Santos Jr.",
                "Luis Suárez",
                "Manuel Neuer",
                "Robert Lewandowski",
                "David De Gea Quintana",
                "Eden Hazard",
                "Toni Kroos",
                "Gonzalo Higuaín",
                "Sergio Ramos García",
                "Kevin De Bruyne",
                "Thibaut Courtois",
                "Alexis Sánchez",
                "Luka Modrić",
                "Gareth Bale",
                "Sergio Agüero",
                "Giorgio Chiellini",
                "Gianluigi Buffon",
                "Paulo Dybala"
            };

            Assert.Equal(names, cup.First20Players());
        }
        public void Shoud_Return_20_Itens_When_Get_Top_Players()
        {
            var cup        = new FIFACupStats();
            var topPlayers = cup.First20Players();

            Assert.NotNull(topPlayers);
            Assert.Equal(20, topPlayers.Count);
        }
Пример #3
0
        public void Shoud_Return_20_Itens_When_Get_Top_Players()
        {
            var expected = new List <string>()
            {
                "C. Ronaldo dos Santos Aveiro",
                "Lionel Messi",
                "Neymar da Silva Santos Jr.",
                "Luis Suárez",
                "Manuel Neuer",
                "Robert Lewandowski",
                "David De Gea Quintana",
                "Eden Hazard",
                "Toni Kroos",
                "Gonzalo Higuaín",
                "Sergio Ramos García",
                "Kevin De Bruyne",
                "Thibaut Courtois",
                "Alexis Sánchez",
                "Luka Modrić",
                "Gareth Bale",
                "Sergio Agüero",
                "Giorgio Chiellini",
                "Gianluigi Buffon",
                "Paulo Dybala"
            };

            var cup        = new FIFACupStats();
            var topPlayers = cup.First20Players();

            Assert.NotNull(topPlayers);
            Assert.Equal(20, topPlayers.Count);

            for (int i = 0; i < 20; i++)
            {
                Assert.Equal(expected[i], topPlayers[i]);
            }
        }