Esempio n. 1
0
        public void KeyCountTest()
        {
            var       target   = new TypingStats();
            const int expected = 100;

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

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