Example #1
0
        public void Aleatorio_ConLongitudDefinida()
        {
            Configuration cg = new Configuration();

            cg.SetLength(8);
            Aleatory aleatory = new Aleatory();
            string   c        = aleatory.Generate(cg);

            Assert.False(string.IsNullOrEmpty(c), "No genera código");
        }
Example #2
0
        public void Aleatorio_SinLongitudDefinida()
        {
            Configuration cg       = new Configuration();
            Aleatory      aleatory = new Aleatory();

            try
            {
                string c = aleatory.Generate(cg);
                Assert.False(!string.IsNullOrEmpty(c), "No debe generar código");
            }
            catch (Exception ex)
            {
                return;
            }
        }