Ejemplo n.º 1
0
        public void TestDivisibleByAndIsComposedOnlyOf()
        {
            int    nombre = 33;
            string res    = FooBarQix.Transforme(nombre);

            Assert.AreEqual("FooFooFoo", res);
        }
Ejemplo n.º 2
0
        public void TestDigitApparitionOrder()
        {
            int    nombre = 53;
            string res    = FooBarQix.Transforme(nombre);

            Assert.AreEqual("BarFoo", res);
        }
Ejemplo n.º 3
0
        public void TestDivisibleByAndContains()
        {
            int    nombre = 15;
            string res    = FooBarQix.Transforme(nombre);

            Assert.AreEqual("FooBarBar", res);
        }
Ejemplo n.º 4
0
        public void TestContient7()
        {
            int    nombre = 17;
            string res    = FooBarQix.Transforme(nombre);

            Assert.AreEqual("Qix", res);
        }
Ejemplo n.º 5
0
        public void TestContient5()
        {
            int    nombre = 52;
            string res    = FooBarQix.Transforme(nombre);

            Assert.AreEqual("Bar", res);
        }
Ejemplo n.º 6
0
        public void TestDivisibleBy7()
        {
            int    nombre = 14;
            string res    = FooBarQix.Transforme(nombre);

            Assert.AreEqual("Qix", res);
        }
Ejemplo n.º 7
0
 public void TestNoException()
 {
     for (int i = 1; i <= 1000; i++)
     {
         Console.WriteLine(FooBarQix.Transforme(i));
     }
 }
Ejemplo n.º 8
0
        public void TestTill10Lol()
        {
            List <string> awaited = new List <string>();

            awaited.Add("1");
            awaited.Add("LolLol");
            awaited.Add("FooFoo");
            awaited.Add("Lol");
            awaited.Add("BarBar");
            awaited.Add("LolFoo");
            awaited.Add("QixQix");
            awaited.Add("Lol");
            awaited.Add("Foo");
            awaited.Add("LolBar");

            for (int i = 1; i <= 10; i++)
            {
                Assert.AreEqual <string>(awaited[i - 1], FooBarQix.Transforme(i));
            }
        }