Esempio n. 1
0
        public void TestNumber55ContainsAndDivisibleBy5()
        {
            FooBarQix obj      = new FooBarQix();
            var       result   = obj.compute("55");
            var       expected = "BarBarBar";

            Assert.AreEqual(expected, result);
        }
Esempio n. 2
0
        public void TestNumber49DivisibleBy7()
        {
            FooBarQix obj      = new FooBarQix();
            var       result   = obj.compute("49");
            var       expected = "Qix";

            Assert.AreEqual(expected, result);
        }
Esempio n. 3
0
        public void TestNumber33ContainsAndDivisibleBy3()
        {
            FooBarQix obj      = new FooBarQix();
            var       result   = obj.compute("33");
            var       expected = "FooFooFoo";

            Assert.AreEqual(expected, result);
        }
Esempio n. 4
0
        public void TestNumber10101Contains0AndDivisibleBy5()
        {
            FooBarQix obj      = new FooBarQix();
            var       result   = obj.compute("10101");
            var       expected = "FooQix**";

            Assert.AreEqual(expected, result);
        }
Esempio n. 5
0
        public void TestNumber202Contains0()
        {
            FooBarQix obj      = new FooBarQix();
            var       result   = obj.compute("202");
            var       expected = "2*2";

            Assert.AreEqual(expected, result);
        }
Esempio n. 6
0
        public void TestNumber101Contains0()
        {
            FooBarQix obj      = new FooBarQix();
            var       result   = obj.compute("101");
            var       expected = "1*1";

            Assert.AreEqual(expected, result);
        }
Esempio n. 7
0
        public void TestNumber357ContainsAndDivisible()
        {
            FooBarQix obj      = new FooBarQix();
            var       result   = obj.compute("357");
            var       expected = "FooQixFooBarQix";

            Assert.AreEqual(expected, result);
        }
Esempio n. 8
0
        public void TestNumber77ContainsAndDivisibleBy7()
        {
            FooBarQix obj      = new FooBarQix();
            var       result   = obj.compute("77");
            var       expected = "QixQixQix";

            Assert.AreEqual(expected, result);
        }