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); }
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); }
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); }