public void TestOutput(string input, string label, List <object[]> expectedOutput) { List <Object[]> result = new List <Object[]>(); CaseFinder.Find(Mk(input), label, result); Assert.True(Eq(result, expectedOutput), Pr(result)); }
public void TestBadSingleLineHeredoc() { List <Object[]> result = new List <Object[]>(); Assert.Throws <IOException>( () => CaseFinder.Find(Mk("<<INPUTblah"), "foo", result) ); }
public void TestUnterminatedHeredoc() { List <Object[]> result = new List <Object[]>(); Assert.Throws <IOException>( () => CaseFinder.Find(Mk("<<INPUT"), "foo", result) ); }
public void TestBadDocLabel2() { List <Object[]> result = new List <Object[]>(); Assert.Throws <ArgumentException>( () => CaseFinder.Find(Mk("<<INPUT blah"), "kill-er", result) ); }