Exemple #1
0
        public void KeyCountTest()
        {
            var       target   = new TypingStats();
            const int expected = 100;

            target.KeyCount = expected;
            int actual = target.KeyCount;

            Assert.AreEqual(expected, actual);
        }
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         // free managed resources
         if (this.typingStats != null)
         {
             this.typingStats.Dispose();
             this.typingStats = null;
         }
     }
 }
 public TypingStatsViewModel()
 {
     this.Reset();
     this.typingStats = new TypingStats();
     this.typingStats.StatsUpdated += new EventHandler <StatsEventArgs>(typingStats_StatsUpdated);
 }