Example #1
0
        public void DeveRetornarNullQuandoNaoAcharVogal()
        {
            string  input    = "ccdfr";
            IStream myStream = new MyStream(input.ToString());

            char caractere = ValidarPrimeiroCaractere.FirstChar(myStream);

            Assert.AreEqual('\0', caractere);
        }
Example #2
0
        public void DeveRetornarNullQuandoExistemSomenteVogais()
        {
            string  input    = "aaeeiioouu";
            IStream myStream = new MyStream(input.ToString());

            char caractere = ValidarPrimeiroCaractere.FirstChar(myStream);

            Assert.AreEqual('\0', caractere);
        }
Example #3
0
        public void DeveRetornarPrimeiraVogalDoFimStream()
        {
            string  input    = "aAbBABacfe";
            IStream myStream = new MyStream(input.ToString());

            char caractere = ValidarPrimeiroCaractere.FirstChar(myStream);

            Assert.AreEqual('e', caractere);
        }
Example #4
0
        public void DeveRetornarNullQuandoVogalSomenteNoComecoStream()
        {
            string  input    = "abBBfdg";
            IStream myStream = new MyStream(input.ToString());

            char caractere = ValidarPrimeiroCaractere.FirstChar(myStream);

            Assert.AreEqual('\0', caractere);
        }
Example #5
0
        public void DeveRetornarNullQuandoContemMaisDeUmaVogal()
        {
            string  input    = "aaccadfrii";
            IStream myStream = new MyStream(input.ToString());

            char caractere = ValidarPrimeiroCaractere.FirstChar(myStream);

            Assert.AreEqual('\0', caractere);
        }