}\r
}\r
\r
-\r
/// <summary>\r
/// 4-2-1で開幕対潜雷撃を含む戦闘を行う\r
/// </summary>\r
{\r
var sniffer = new Sniffer();\r
SniffLogFile(sniffer, "practice_001");\r
- PAssert.That(() => sniffer.WrongBattleResult.Count == 0);\r
+ PAssert.That(() => !sniffer.IsBattleResultStatusError);\r
}\r
\r
/// <summary>\r
{\r
var sniffer = new Sniffer();\r
SniffLogFile(sniffer, "combined_battle_001");\r
- PAssert.That(() => sniffer.WrongBattleResult.Count == 0);\r
+ PAssert.That(() => !sniffer.IsBattleResultStatusError);\r
}\r
\r
/// <summary>\r
{\r
var sniffer = new Sniffer();\r
SniffLogFile(sniffer, "combined_battle_002");\r
- PAssert.That(() => sniffer.WrongBattleResult.Count == 0);\r
+ PAssert.That(() => !sniffer.IsBattleResultStatusError);\r
}\r
\r
/// <summary>\r
{\r
var sniffer = new Sniffer();\r
SniffLogFile(sniffer, "combined_battle_003");\r
- PAssert.That(() => sniffer.WrongBattleResult.Count == 0);\r
+ PAssert.That(() => !sniffer.IsBattleResultStatusError);\r
}\r
\r
/// <summary>\r
{\r
var sniffer = new Sniffer();\r
SniffLogFile(sniffer, "sp_midnight_002");\r
- PAssert.That(() => sniffer.Battle.WrongResultRank.Count == 0);\r
+ PAssert.That(() => !sniffer.Battle.DisplayedResultRank.IsError);\r
}\r
\r
/// <summary>\r
{\r
var sniffer = new Sniffer();\r
SniffLogFile(sniffer, "nighttoday_001");\r
- PAssert.That(() => sniffer.Battle.WrongResultRank.Count == 0 && sniffer.WrongBattleResult.Count == 0);\r
+ PAssert.That(() => !sniffer.Battle.DisplayedResultRank.IsError && !sniffer.IsBattleResultStatusError);\r
+ }\r
+\r
+ /// <summary>\r
+ /// 単艦退避する\r
+ /// </summary>\r
+ [TestMethod]\r
+ public void EscapeWithoutEscort()\r
+ {\r
+ var sniffer = new Sniffer();\r
+ SniffLogFile(sniffer, "escape_002");\r
+ PAssert.That(() => sniffer.GetShipStatuses(2)[1].Escaped);\r
+ PAssert.That(() => !sniffer.IsBattleResultStatusError);\r
}\r
\r
/// <summary>\r
{\r
var sniffer = new Sniffer();\r
SniffLogFile(sniffer, "baseaircorps_001");\r
- PAssert.That(() => sniffer.BaseAirCorps[0].AirCorps[0].FighterPower[1] == 301);\r
+ PAssert.That(() => sniffer.BaseAirCorps[0].AirCorps[0].FighterPower.AirCombat[1] == 301);\r
sniffer.BaseAirCorps[0].AirCorps[0].Action = 2; // 防空\r
- PAssert.That(() => sniffer.BaseAirCorps[0].AirCorps[0].FighterPower[1] == 320);\r
+ PAssert.That(() => sniffer.BaseAirCorps[0].AirCorps[0].FighterPower.Interception[1] == 320);\r
}\r
\r
/// <summary>\r
{\r
var sniffer = new Sniffer();\r
SniffLogFile(sniffer, "baseaircorps_002");\r
- PAssert.That(() => sniffer.BaseAirCorps[0].AirCorps[2].FighterPower[0] == 353);\r
+ PAssert.That(() => sniffer.BaseAirCorps[0].AirCorps[2].FighterPower.Interception[0] == 353);\r
}\r
\r
/// <summary>\r
{\r
var sniffer = new Sniffer();\r
SniffLogFile(sniffer, "baseaircorps_003");\r
- PAssert.That(() => sniffer.BaseAirCorps[1].AirCorps[0].FighterPower[0] == 121);\r
+ PAssert.That(() => sniffer.BaseAirCorps[1].AirCorps[0].FighterPower.AirCombat[0] == 121);\r
}\r
\r
/// <summary>\r
SniffLogFile(sniffer, "nyukyo_001");\r
PAssert.That(() => sniffer.RepairList.Length == 1);\r
}\r
+\r
+ /// <summary>\r
+ /// 一括解体する(装備保管なしとあり)\r
+ /// </summary>\r
+ [TestMethod]\r
+ public void DestroyShip()\r
+ {\r
+ var sniffer = new Sniffer();\r
+ SniffLogFile(sniffer, "destroyship_001");\r
+ PAssert.That(() => sniffer.Item.NowShips == 250);\r
+ PAssert.That(() => sniffer.Item.NowEquips == 1118);\r
+ PAssert.That(() => sniffer.Material.Current.Take(4).SequenceEqual(new[] {285615, 286250, 291010, 284744}));\r
+ }\r
+\r
+ /// <summary>\r
+ /// 第2艦隊までしか解放していなくてもエラーにならないようにする\r
+ /// </summary>\r
+ [TestMethod]\r
+ public void TwoFleets()\r
+ {\r
+ var sniffer = new Sniffer(true);\r
+ SniffLogFile(sniffer, "twofleets_001");\r
+ var expected = Enumerable.Repeat(new ChargeStatus(5, 5), ShipInfo.FleetCount);\r
+ PAssert.That(() => expected.SequenceEqual(sniffer.ChargeStatuses));\r
+ }\r
+\r
+ /// <summary>\r
+ /// ship2がリクエストで指定した艦娘のデータしか返さない\r
+ /// </summary>\r
+ [TestMethod]\r
+ public void Ship2ReturnShipSpecifiedByRequest()\r
+ {\r
+ var sniffer = new Sniffer();\r
+ SniffLogFile(sniffer, "ship2_001");\r
+ PAssert.That(() => sniffer.Item.NowShips == 243);\r
+ }\r
}\r
}
\ No newline at end of file