public void FillSet() { PageInput pageIn = new PageInput(Format.FillSet, 13, 0, 0, new List <String>(new String[] { "abc", "abc", "acei", "abc", "abc", "acei", "abc", "abc", "ace", "ai" })); Page page = pageIn.Compose(); String actual = page.ToString(); Assert.AreEqual("acei acei abc\nabc abc abc\nabc abc ace\nai\n", actual); }
public void TestMethod1() { PageInput pageIn = new PageInput(Format.Fill, 5, 0, 0, new List <String>(new String[] { "abc", "abc" })); Page page = pageIn.Compose(); String actual = page.ToString(); Assert.AreEqual("abc\nabc\n", actual); }
public void LineMoment() { PageInput pageIn = new PageInput(Format.LineMoment, 14, 0, 7, new List <String>(new String[] { "abc", "abc", "acei", "abc", "abc", "acei", "abc", "abc", "abc", "ace", "ai" })); Page page = pageIn.Compose(); String actual = page.ToString(); Assert.AreEqual("abc abc acei\nabc abc acei\nabc abc abc\nace ai\n", actual); }
static void Main(String[] args) { try { // do not remove this try-catch statement, do not add any code outside try-block //Reads in from the file PageInput pageInput = PageInputXml.LoadInput("input.xml"); //does the work Page page = pageInput.Compose(); //Outputs to file page.ToFile("page.txt"); } catch (Exception e) { // do not modify the code in this catch block except to comment two lines at end of block Console.WriteLine("Unhandled exception: " + e.Message); // comment following two lines before final build and submission //Console.WriteLine("Press any key to exit program."); //Console.ReadKey(); } }