示例#1
0
        public void justifyTest2()
        {
            Justifier target = new Justifier();

            string[] textIn   = { "JOHN", "JAKE", "ALAN", "BLUE" };
            string[] expected = { "JOHN", "JAKE", "ALAN", "BLUE" };
            string[] actual;
            actual = target.justify(textIn);
            CollectionAssert.AreEqual(expected, actual);
        }
示例#2
0
        public void justifyTest3()
        {
            Justifier target = new Justifier();

            string[] textIn   = { "LONGEST", "A", "LONGER", "SHORT" };
            string[] expected = { "LONGEST", "      A", " LONGER", "  SHORT" };
            string[] actual;
            actual = target.justify(textIn);
            CollectionAssert.AreEqual(expected, actual);
        }
示例#3
0
        public void justifyTest1()
        {
            Justifier target = new Justifier();

            string[] textIn   = { "BOB", "TOMMY", "JIM" };
            string[] expected = { "  BOB", "TOMMY", "  JIM" };
            string[] actual;
            actual = target.justify(textIn);
            CollectionAssert.AreEqual(expected, actual);
        }