public void ValidateZsnesSaveStateTest()
        {
            //Set The Path Of The ZSNES Save State File
            var _saveStatePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"SaveState\nhl94.zs3");

            var sr = new StatReader(_saveStatePath);

            Assert.True(sr.ValidSaveStateFile, "Valid ZSNES File");
        }
        public void PlayerStatManagerTest()
        {
            var _saveStatePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"SaveState\nhl94.zs3");
            var _statreader = new StatReader(_saveStatePath);

            var PSM = new PlayerStatManager(_statreader);

            Assert.True(PSM != null, "PlayerStat Manager Created");
        }
        public void ScoringSummaryManagerTest()
        {
            var _saveStatePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"SaveState\nhl94.zs3");
            var _statreader = new StatReader(_saveStatePath);

            var SSM = new ScoringSummaryManager(_statreader);

            Assert.True(SSM != null, "ScoringSummary Manager Created");
        }
        public void GetPlayerStatsTest()
        {
            var _saveStatePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"SaveState\nhl94.zs3");
            var _statreader = new StatReader(_saveStatePath);

            var PSM = new PlayerStatManager(_statreader);
            var PSmodel = PSM.GetPlayerStats();
            var _boxscore = new Boxscore();
            _boxscore.playerstats = PSmodel;

            Assert.True(_boxscore.playerstats != null, "PlayerStats Model & Boxscore Created");
        }
        public void GetScoringSummaryTest()
        {
            var _saveStatePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"SaveState\nhl94.zs3");
            var _statreader = new StatReader(_saveStatePath);

            var SSM = new ScoringSummaryManager(_statreader);
            var SSmodel = SSM.GetScoringSummary();
            var _boxscore = new Boxscore();
            _boxscore.scoringsummary = SSmodel;

            Assert.True(_boxscore.scoringsummary != null, "ScoringSummary Model & Boxscore Created");
        }
        public void DisposeTest()
        {
            var _saveStatePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"SaveState\nhl94.zs3");
            var _statreader = new StatReader(_saveStatePath);

            var PSM = new PlayerStatManager(_statreader);
            var PSmodel = new PlayerStatsModel();

            //Call Dispose
            PSM.Dispose();

            //Calling The GetScoringSummary Method should fail as the FileStream Reader should be null.
            Exception ex = Assert.Throws<System.NullReferenceException>(() => PSmodel = PSM.GetPlayerStats());

            //Verify The Expected Exception was thrown.
            Assert.Equal("Object reference not set to an instance of an object.", ex.Message);
        }