コード例 #1
0
ファイル: NHLGame.cs プロジェクト: MaverickEsq/nhlfeed
        public NHLGame(int _gameId)
        {
            guid = System.Guid.NewGuid();
            gameId = _gameId;
            homeScore = 0;
            homeShots = 0;
            awayScore = 0;
            awayShots = 0;

            period = String.Empty;
            //intermission = false;
            final = false;
            time = String.Empty;
            shootout = false;
            notStarted = true;
            overtime = false;

            mutex = new Object();
            thread = new Thread(new ParameterizedThreadStart(LoopThread));

            lastGoal = null;
            originalLastGoal = null;
            newEvents = new Queue<NHLGameEvent>();
            oldEvents = new List<NHLGameEvent>();

            nhlGameStats = null;
            nhlSeasonStats = null;

            goalDebug = false;
        }
コード例 #2
0
ファイル: NHLJackedTest.cs プロジェクト: MaverickEsq/nhlfeed
        public void ParseStatsListTest()
        {
            NHLStats _nhlStats = null; // TODO: Initialize to an appropriate value

            NHLGameStats target = new NHLGameStats(_nhlStats, 0, "", "", false);

            int timeIndex = 0; // TODO: Initialize to an appropriate value

            target.ParsePlayerList(false);
            target.ParseStatsList(timeIndex, false);

            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }