Ejemplo n.º 1
0
        public async Task TreasureMap_FullApplicationTestAsync()
        {
            var treasureCollector = new TreasureCollector();
            await treasureCollector.ProceedTreasureCollectionAsync(InputFiles);

            Assert.IsTrue(File.Exists(OutputFilePath));
            FileAssert.AreEqual(new FileInfo(OutputExpectedFilePath), new FileInfo(OutputFilePath));
        }
Ejemplo n.º 2
0
 static async Task Main(string[] args)
 {
     try
     {
         var treasureCollector = new TreasureCollector();
         await treasureCollector.ProceedTreasureCollectionAsync(args);
     }
     catch (Exception ex)
     {
         Console.WriteLine("Une exception a été levée:");
         Console.WriteLine("Message: " + ex.Message);
     }
 }