Esempio n. 1
0
        public void ComputeWith105ShouldReturnFooBarQixAsteriskBar()
        {
            FooBarQix obj      = new FooBarQix();
            string    expected = "FooBarQix*Bar";
            string    actual   = obj.Compute("105");

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        public void ComputeWith7ShouldReturnQixQix()
        {
            FooBarQix obj      = new FooBarQix();
            string    expected = "QixQix";
            string    actual   = obj.Compute("7");

            Assert.AreEqual(expected, actual);
        }
Esempio n. 3
0
        public void NumberDivisibleBy3ShouldReturnFoo()
        {
            FooBarQix obj      = new FooBarQix();
            string    expected = "Foo";
            string    actual   = obj.Compute("12");

            Assert.AreEqual(expected, actual);
        }
Esempio n. 4
0
        public void ComputeWith35ShouldReturnBarQixFooBar()
        {
            FooBarQix obj      = new FooBarQix();
            string    expected = "BarQixFooBar";
            string    actual   = obj.Compute("35");

            Assert.AreEqual(expected, actual);
        }
Esempio n. 5
0
        public void ComputeWith60ShouldReturnFooBar()
        {
            FooBarQix obj      = new FooBarQix();
            string    expected = "FooBar*";
            string    actual   = obj.Compute("60");

            Assert.AreEqual(expected, actual);
        }
Esempio n. 6
0
        public void NumberNonDivisibleByAnyShouldReturnSameNumber()
        {
            FooBarQix obj      = new FooBarQix();
            string    expected = "1";
            string    actual   = obj.Compute("1");

            Assert.AreEqual(expected, actual);
        }
Esempio n. 7
0
        public void NumberDivisibleBy5ShouldReturnBar()
        {
            FooBarQix obj      = new FooBarQix();
            string    expected = "Bar*";
            string    actual   = obj.Compute("20");

            Assert.AreEqual(expected, actual);
        }
Esempio n. 8
0
        public void ComputeWith101ShouldReturn1Asterisk1()
        {
            FooBarQix obj      = new FooBarQix();
            string    expected = "1*1";
            string    actual   = obj.Compute("101");

            Assert.AreEqual(expected, actual);
        }