Ejemplo n.º 1
0
        public void EmptyPathDigitizer()
        {
            var    digitizer = new Digitizer();
            string initial   = "";
            string expeted   = "";

            Assert.IsTrue(expeted.Equals(digitizer.GetDigits(initial)));
        }
Ejemplo n.º 2
0
        public void SadPathDigitizer()
        {
            var    digitizer = new Digitizer();
            string initial   = "OneTwoThreeFour";
            string expeted   = "";

            Assert.IsTrue(expeted.Equals(digitizer.GetDigits(initial)));
        }
Ejemplo n.º 3
0
        public void VeryHappyPathDigitizer()
        {
            var    digitizer = new Digitizer();
            string initial   = "123456789012345678123456789098765432345678";
            string expeted   = "123456789012345678123456789098765432345678";

            Assert.IsTrue(expeted.Equals(digitizer.GetDigits(initial)));
        }
Ejemplo n.º 4
0
        public void HappyPathDigitizer()
        {
            var    digitizer = new Digitizer();
            string initial   = "One2Three4";
            string expeted   = "24";

            Assert.IsTrue(expeted.Equals(digitizer.GetDigits(initial)));
        }
Ejemplo n.º 5
0
        public void NullPathDigitizer()
        {
            var digitizer = new Digitizer();

            Assert.IsNull(digitizer.GetDigits(null));
        }