Revisión | 7c65ab6f1b6d1c5030df0b4b9a1045a50740a3db (tree) |
---|---|
Tiempo | 2021-05-15 21:03:57 |
Autor | Kazuhiro Fujieda <fujieda@user...> |
Commiter | Kazuhiro Fujieda |
第一艦隊の単艦退避に対応する
@@ -201,5 +201,20 @@ namespace KancolleSniffer.Test | ||
201 | 201 | _battleInfo.InspectBattleResult(Data(logs[6])); |
202 | 202 | PAssert.That(() => !_battleInfo.DisplayedResultRank.IsError); |
203 | 203 | } |
204 | + | |
205 | + /// <summary> | |
206 | + /// 第一艦隊で単艦退避する | |
207 | + /// </summary> | |
208 | + [TestMethod] | |
209 | + public void EscapeWithoutEscortInFirstFleet() | |
210 | + { | |
211 | + var logs = ReadAllLines("escape_003"); | |
212 | + var battle = Data(logs[3]); | |
213 | + InjectShips(battle, JsonObject.Parse(logs[0])); | |
214 | + _battleInfo.InspectBattle(logs[1], logs[2], battle); | |
215 | + _battleInfo.InspectBattleResult(Data(logs[6])); | |
216 | + _battleInfo.CauseEscape(); | |
217 | + PAssert.That(() => _shipInfo.Fleets[0].Ships[5].Escaped); | |
218 | + } | |
204 | 219 | } |
205 | 220 | } |
\ No newline at end of file |
@@ -703,7 +703,7 @@ namespace KancolleSniffer.Model | ||
703 | 703 | } |
704 | 704 | else |
705 | 705 | { |
706 | - _escapingShips.Add(_shipInfo.Fleets[2].Deck[damaged]); | |
706 | + _escapingShips.Add(_fleet.Deck[damaged]); | |
707 | 707 | } |
708 | 708 | } |
709 | 709 |