Example #1
0
        public void WorksForLowName()
        {
            WriteSpeedType lowSpeed = Week3.WriteSpeed("tuti", 10);

            Assert.AreEqual(lowSpeed, WriteSpeedType.SLOW);
        }
Example #2
0
        public void WorksForFastName()
        {
            WriteSpeedType fastSpeed = Week3.WriteSpeed("pepe", 1);

            Assert.AreEqual(WriteSpeedType.FAST, fastSpeed);
        }
Example #3
0
        public void WorksForRegularName()
        {
            WriteSpeedType regularSpeed = Week3.WriteSpeed("made", 2);

            Assert.AreEqual(regularSpeed, WriteSpeedType.REGULAR);
        }
Example #4
0
 public void FailsWithIncorrectValues()
 {
     var result = Week3.WriteSpeed("1", 4);
 }