コミットメタ情報

リビジョンb4d4677da348221804fc68175c0a26d3aa8eb1cc (tree)
日時2018-12-09 19:38:47
作者Kazuhiro Fujieda <fujieda@user...>
コミッターKazuhiro Fujieda

ログメッセージ

見かけ上の修正

変更サマリ

差分

--- a/KancolleSniffer.Test/QuestInfoTest.cs
+++ b/KancolleSniffer.Test/QuestInfoTest.cs
@@ -163,18 +163,18 @@ namespace KancolleSniffer.Test
163163 {
164164 QuestList = new[]
165165 {
166- new QuestStatus{Id = 201, Category = 2}, new QuestStatus{Id = 213, Category = 2},
167- new QuestStatus{Id = 265, Category = 2}, new QuestStatus{Id = 822, Category = 8}
166+ new QuestStatus {Id = 201, Category = 2}, new QuestStatus {Id = 213, Category = 2},
167+ new QuestStatus {Id = 265, Category = 2}, new QuestStatus {Id = 822, Category = 8}
168168 },
169169 QuestLastReset = new DateTime(2017, 10, 31, 5, 0, 0)
170170 };
171171 questInfo.LoadState(status);
172172 questInfo.InspectQuestList(CreateQuestList(new int[0]));
173173 questInfo.SaveState(status);
174- PAssert.That(() => status.QuestList.Select(q => q.Id).SequenceEqual(new []{213, 822})); // デイリーとマンスリーが消える
174+ PAssert.That(() => status.QuestList.Select(q => q.Id).SequenceEqual(new[] {213, 822})); // デイリーとマンスリーが消える
175175 questInfo.InspectQuestList(CreateQuestList(new int[0]));
176176 questInfo.SaveState(status);
177- PAssert.That(() => status.QuestList.Select(q => q.Id).SequenceEqual(new []{822})); // ウィークリーが消える
177+ PAssert.That(() => status.QuestList.Select(q => q.Id).SequenceEqual(new[] {822})); // ウィークリーが消える
178178 questInfo.InspectQuestList(CreateQuestList(new int[0]));
179179 questInfo.SaveState(status);
180180 PAssert.That(() => status.QuestList.Length == 0); // クォータリーが消える
@@ -185,16 +185,16 @@ namespace KancolleSniffer.Test
185185 private object CreateQuestList(int[] ids) => Js(new
186186 {
187187 api_list =
188- ids.Select(id => new
189- {
190- api_no = id,
191- api_category = id / 100,
192- api_state = 2,
193- api_title = "",
194- api_detail = "",
195- api_get_material = new int[0],
196- api_progress_flag = 0
197- })
188+ ids.Select(id => new
189+ {
190+ api_no = id,
191+ api_category = id / 100,
192+ api_state = 2,
193+ api_title = "",
194+ api_detail = "",
195+ api_get_material = new int[0],
196+ api_progress_flag = 0
197+ })
198198 });
199199
200200 /// <summary>
@@ -929,7 +929,7 @@ namespace KancolleSniffer.Test
929929 {
930930 api_maparea_id = 5,
931931 api_mapinfo_no = 3,
932- api_event_id = 5,
932+ api_event_id = 5
933933 }));
934934 questInfo.InspectBattleResult(Js(new {api_win_rank = "S"}));
935935 PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 1, 0}));
@@ -938,7 +938,7 @@ namespace KancolleSniffer.Test
938938 {
939939 api_maparea_id = 5,
940940 api_mapinfo_no = 4,
941- api_event_id = 5,
941+ api_event_id = 5
942942 }));
943943 questInfo.InspectBattleResult(Js(new {api_win_rank = "S"}));
944944 PAssert.That(() => count.NowArray.SequenceEqual(new[] {1, 1, 1}));
@@ -1007,7 +1007,7 @@ namespace KancolleSniffer.Test
10071007 {
10081008 var battleInfo = new BattleInfo(null, null);
10091009 var questInfo = new QuestInfo(null, battleInfo, () => new DateTime(2015, 1, 1));
1010- questInfo.InspectQuestList(CreateQuestList(new[] {302, 303, 304, 311, 315,}));
1010+ questInfo.InspectQuestList(CreateQuestList(new[] {302, 303, 304, 311, 315}));
10111011
10121012 battleInfo.InjectResultStatus(new[]
10131013 {
@@ -1232,7 +1232,6 @@ namespace KancolleSniffer.Test
12321232 $"api%5Fslotitem%5Fids={string.Join("%2C", Enumerable.Range(1, items.Length))}&api%5Fverno=1", null);
12331233 var scalar = new[]
12341234 {
1235-
12361235 new {Id = 613, Now = 1}, new {Id = 638, Now = 1}, new {Id = 643, Now = 1}, new {Id = 645, Now = 1},
12371236 new {Id = 663, Now = 1}, new {Id = 673, Now = 1}, new {Id = 674, Now = 1}
12381237 };
@@ -1294,7 +1293,7 @@ namespace KancolleSniffer.Test
12941293 new QuestCount {Id = 426, NowArray = new[] {1, 1, 1, 1}},
12951294 new QuestCount {Id = 428, NowArray = new[] {1, 1, 1}},
12961295 new QuestCount {Id = 873, NowArray = new[] {1, 1, 1}},
1297- new QuestCount {Id= 888, NowArray = new []{1, 1, 1}},
1296+ new QuestCount {Id= 888, NowArray = new []{1, 1, 1}},
12981297 new QuestCount {Id = 688, NowArray = new[] {2, 1, 2, 1}},
12991298 new QuestCount {Id = 893, NowArray = new[] {1, 1, 1, 1}}
13001299 }
旧リポジトリブラウザで表示