public void PenaltySummaryManagerTest()
        {
            var _saveStatePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"SaveState\nhl94.zs3");
            var _statreader = new StatReader(_saveStatePath);

            var PSM = new PenaltySummaryManager(_statreader);

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

            var PSM = new PenaltySummaryManager(_statreader);
            var PSmodel = PSM.GetPenaltySummary();
            var _boxscore = new Boxscore();
            _boxscore.penaltysummary = PSmodel;

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

            var PSM = new PenaltySummaryManager(_statreader);
            var PSmodel = new PenaltySummaryModel();

            //Call Dispose
            PSM.Dispose();

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

            //Verify The Expected Exception was thrown.
            Assert.Equal("Object reference not set to an instance of an object.", ex.Message);
        }
 private void GetPenaltySummary()
 {
     var PSM = new PenaltySummaryManager(_statreader);
     var PSmodel = PSM.GetPenaltySummary();
     _boxscore.penaltysummary = PSmodel;
     PSM.Dispose();
 }