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

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

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