public void RecordUnfinishedBusiness(string enemyNames) { var adapter = new BattleResultAdapter(); var btc = new BattleTestCase("A", enemyNames.Split(',')); var outcomes = adapter.RecordUnfinishedBusiness(btc); Assert.IsNotNull(outcomes); }
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); }