public void Test6() { string[] files = new string[] { "01.in" }; IReader reader = new MultifileReader(files); Assert.AreEqual("If a train station is where the train stops, what is a work station? \n ", readWholeReader(reader)); }
public void Test5() { string[] files = new string[] { "doesnt_exist" }; IReader reader = new MultifileReader(files); Assert.AreEqual(" ", readWholeReader(reader)); }
public void Test3() { string[] files = new string[] { "test1.in", "doesnt_exist", "test1.in" }; IReader reader = new MultifileReader(files); Assert.AreEqual(Test1Text + " " + Test1Text + " ", readWholeReader(reader)); }
public void Test4() { // Batch.exe --highlight-spaces xx.in xx.in xx.in 01.in xx.in xx.in ex08.out 80 string[] files = new string[] { "01.in", "01.in", "01.in" }; IReader reader = new MultifileReader(files); Aligner aligner = new Aligner(reader, "ex12_actual.out", 17, false); aligner.Process(); Assert.AreEqual(ReadFile("ex12.out"), ReadFile("ex12_actual.out")); }
public void Test1() { // Batch.exe --highlight-spaces 01.in ex01.out 17 string[] files = new string[] { "01.in" }; IReader reader = new MultifileReader(files); Aligner aligner = new Aligner(reader, "ex01_actual.out", 17, true); aligner.Process(); Assert.AreEqual(ReadFile("ex01.out"), ReadFile("ex01_actual.out")); }