Exemple #1
0
 internal static bool CheckForUnfinishedBusiness()
 {
     if (File.Exists(Path))
     {
         string data     = File.ReadAllText(Path);
         var    testCase = BattleTestCase.Deserialize(data);
         if (testCase != null)
         {
             var adapter  = new BattleResultAdapter();
             var outcomes = adapter.RecordUnfinishedBusiness(testCase);
             AddResult(outcomes);
             return(true);
         }
         File.Delete(Path);
     }
     return(false);
 }
Exemple #2
0
 internal static void SaveToDisk(BattleTestCase testCase)
 {
     File.WriteAllText(Path, testCase.Serialize());
 }