コミットメタ情報

リビジョンf6f12c2f99f6a999aa461084c43cbfff8d8b045c (tree)
日時2018-07-31 20:20:16
作者Kazuhiro Fujieda <fujieda@user...>
コミッターKazuhiro Fujieda

ログメッセージ

艦娘数を数えるテストを追加する

変更サマリ

差分

--- a/KancolleSniffer.Test/SnifferTest.cs
+++ b/KancolleSniffer.Test/SnifferTest.cs
@@ -886,5 +886,20 @@ namespace KancolleSniffer.Test
886886 PAssert.That(() => sniffer.ShipCounter.Now == 250);
887887 PAssert.That(() => sniffer.ItemCounter.Now == 1159);
888888 }
889+
890+ /// <summary>
891+ /// 艦娘数を数える
892+ /// </summary>
893+ [TestMethod]
894+ public void CountShips()
895+ {
896+ var sniffer = new Sniffer();
897+ SniffLogFile(sniffer, "ship_count_001");
898+ PAssert.That(() => sniffer.ShipCounter.Now == 267 && sniffer.ShipCounter.Alarm, "ログイン");
899+ SniffLogFile(sniffer, "ship_count_002");
900+ PAssert.That(() => sniffer.ShipCounter.Now == 266 && sniffer.ShipCounter.Alarm, "建造");
901+ SniffLogFile(sniffer, "ship_count_003");
902+ PAssert.That(() => sniffer.ShipCounter.Now == 266 && sniffer.ShipCounter.Alarm, "ドロップ");
903+ }
889904 }
890905 }
\ No newline at end of file
--- a/KancolleSniffer.Test/logs
+++ b/KancolleSniffer.Test/logs
@@ -1 +1 @@
1-Subproject commit dcb6cd982f57c262ff5280f13873595f3cc4864e
1+Subproject commit 37eb669f909a9aa27105af1ff3c956de0f62ae8c
旧リポジトリブラウザで表示