private static void AssertItemsCountInOutputFile(AppProps p, int count)
 {
     String path = Path.GetTempFileName();
     p.SaveToFile(path);
     try {
         Assert.AreEqual(count, File.ReadAllLines(path).Length);
     } finally {
         File.Delete(path);
     }
 }