public void K_return_the_value_5()
        {
            var conjuntoAlfabeto = new ConjuntoAlfabeto();
            var value            = conjuntoAlfabeto.GetMatched('K');

            Assert.AreEqual(5, value);
        }
Beispiel #2
0
        public void Key_caracterHifen_return_the_value_caractere()
        {
            var conjuntoAlfabeto = new ConjuntoAlfabeto();
            var value            = conjuntoAlfabeto.GetMatchedLetra('-');

            Assert.AreEqual('-', value);
        }
        public void A_return_the_value_2()
        {
            var conjuntoAlfabeto = new ConjuntoAlfabeto();
            var value            = conjuntoAlfabeto.GetMatched('A');

            Assert.AreEqual(2, value);
        }
Beispiel #4
0
        public void Key_0_return_the_value_0()
        {
            var conjuntoAlfabeto = new ConjuntoAlfabeto();
            var value            = conjuntoAlfabeto.GetMatchedLetra('0');

            Assert.AreEqual('0', value);
        }
Beispiel #5
0
        public void HOME_SWEET_HOME_returns_4663()
        {
            IConjuntoAlfabeto conjuntoAlfabeto = new ConjuntoAlfabeto();

            string frase    = "1-HOME-SWEET-HOME";
            string telefone = conjuntoAlfabeto.GetMatchedFrase(frase);

            Assert.AreEqual("1-4663-79338-4663", telefone);
        }
Beispiel #6
0
        public void HOME_returns_4663()
        {
            IConjuntoAlfabeto conjuntoAlfabeto = new ConjuntoAlfabeto();

            string frase    = "HOME";
            string telefone = conjuntoAlfabeto.GetMatchedFrase(frase);

            Assert.AreEqual("4663", telefone);
        }
Beispiel #7
0
        public void WXYZ_returns_9999()
        {
            IConjuntoAlfabeto conjuntoAlfabeto = new ConjuntoAlfabeto();

            string frase    = "WXYZ";
            string telefone = conjuntoAlfabeto.GetMatchedFrase(frase);

            Assert.AreEqual("9999", telefone);
        }
Beispiel #8
0
        public void ABC_returns_222()
        {
            IConjuntoAlfabeto conjuntoAlfabeto = new ConjuntoAlfabeto();

            string frase    = "ABC";
            string telefone = conjuntoAlfabeto.GetMatchedFrase(frase);

            Assert.AreEqual("222", telefone);
        }
Beispiel #9
0
 public void Key_caractereBarra_return_the_exception()
 {
     var conjuntoAlfabeto = new ConjuntoAlfabeto();
     var value            = conjuntoAlfabeto.GetMatchedLetra('\\');
 }
Beispiel #10
0
 public void Key_2_return_the_exception()
 {
     var conjuntoAlfabeto = new ConjuntoAlfabeto();
     var value            = conjuntoAlfabeto.GetMatchedLetra('2');
 }