Beispiel #1
0
        public void GetAcuracyTest2()
        {
            var target = new TypingStats_Accessor {
                ErrorCount = 0, KeyCount = 12
            };
            const int expected = 100;
            int       actual   = target.GetAccuracy();

            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void StartTest()
        {
            var target = new TypingStats_Accessor();

            target.Start();
            Assert.AreEqual(0, target.KeyCount);
            Assert.AreEqual(0, target.ErrorCount);
            Assert.AreEqual(100, target.GetAccuracy());
            Assert.AreEqual(0, target.GetAverageWpm());
        }