예제 #1
0
        public void CreateMatch_ValidMatchAPI_CreatedMatchHasCorrectWinner()
        {
            MatchAPI mAPI = validMatchAPI();

            Match m = mAPI.CreateMatch("testdb");

            Assert.IsTrue(m.Team2.Winner);
        }
예제 #2
0
        public void CreateMatch_ValidMatchAPI_CreatedMatchHasSameIdAsMatchAPI()
        {
            MatchAPI mAPI = validMatchAPI();

            Match m = mAPI.CreateMatch("testdb");

            Assert.AreEqual(mAPI.MatchId, m.MatchId);
        }
예제 #3
0
        public void CreateMatch_ValidMatchAPI_CreatedMatchTeam2Has5Participants()
        {
            MatchAPI mAPI = validMatchAPI();

            Match m = mAPI.CreateMatch("testdb");

            Assert.AreEqual(5, m.Team2.Participants.Count);
        }
예제 #4
0
        public void CreateMatch_ValidMatchAPI_MatchIsCreated()
        {
            MatchAPI m = validMatchAPI();

            Assert.IsInstanceOfType(
                m.CreateMatch("testdb"),
                typeof(Match));
        }
        public async void PlayerBasicMatchGetterFixture()
        {
            var response = await MatchAPI.GetBasicInfoOfAllMatchesOfPlayer("190500077");

            Assert.NotNull(response);
        }
        public async void MatchGetterFixture()
        {
            var response = await MatchAPI.GetMatchDetails("3842414268");

            Assert.NotNull(response);
        }
예제 #7
0
        public void CreateMatch_InvalidMatchAPI_NullReferenceExceptionThrown()
        {
            MatchAPI m = invalidMatchAPI();

            Match match = m.CreateMatch("testdb");
        }