Exemplo n.º 1
0
 public static bool assertExcel()
 {
     try
     {
         //asserts the file exists
         if (File.Exists(path + "VDI.xlsx"))
         {
             result = true;
             Console.WriteLine("Excel file saved as: " + fileName);
         }
         Available.DeleteAllFilesInPath(path);
     }
     catch (Exception e)
     {
         Console.WriteLine("Excel file " + fileName + " not found");
     }
     return(result);
 }
Exemplo n.º 2
0
            public static bool assertPowerPoint()
            {
                try
                {
                    //asserts the file exists
                    if (File.Exists(path + "VDI.pptx"))
                    {
                        result = true;
                        Console.WriteLine("PowerPoint file saved as: " + fileName);
                    }


                    Available.DeleteAllFilesInPath(path);
                }
                catch (Exception e)
                {
                    Console.WriteLine("Assert PowerPoint Failed: " + fileName + "\n" + e.Message);
                }
                return(result);
            }