Exemplo n.º 1
0
        public void AllMatchesMethods_WhoHaveFilters_MustVerifyThat_TheFilters_AreValid()
        {
            Assert.ThrowsAsync <ArgumentException>(() => _matchProvider.GetAllMatches("test"), "Respect key value parameters.");
            Assert.ThrowsAsync <ArgumentException>(() => _matchProvider.GetAllMatches("test", "value"), "This filters are not supported: \n test");

            Assert.ThrowsAsync <ArgumentException>(() => _matchProvider.GetAllMatchOfCompetition(1, "test"), "Respect key value parameters.");
            Assert.ThrowsAsync <ArgumentException>(() => _matchProvider.GetAllMatchOfCompetition(1, "test", "value"), "This filters are not supported: \n test");


            Assert.ThrowsAsync <ArgumentException>(() => _matchProvider.GetAllMatchOfTeam(1, "test"), "Respect key value parameters.");
            Assert.ThrowsAsync <ArgumentException>(() => _matchProvider.GetAllMatchOfTeam(1, "test", "value", "hello", "world"), "This filters are not supported: \n test\nworld");
        }