Skip to content

Commit a2491a7

Browse files
committed
[Tests] Fix test
1 parent 5df5b68 commit a2491a7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

WDE.WoWHeadConnector.Test/HeadFetchServiceIntegrationTest.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Linq;
23
using System.Threading.Tasks;
34
using NUnit.Framework;
@@ -55,7 +56,7 @@ public async Task TestHexthralledSoldierTbc()
5556
public async Task TestModes()
5657
{
5758
var abilities = await headService.FetchNpcAbilities(HeadSourceType.Master, 26554);
58-
var bySpell = abilities.GroupBy(a => a.SpellId).ToDictionary(a => a.Key, a => a.SelectMany(m => m.Modes!).ToList());
59+
var bySpell = abilities.GroupBy(a => a.SpellId).ToDictionary(a => a.Key, a => a.SelectMany(m => m.Modes ?? Array.Empty<MapDifficulty>()).ToList());
5960

6061
CollectionAssert.AreEquivalent(new MapDifficulty[]
6162
{
@@ -77,10 +78,6 @@ public async Task TestModes()
7778
{
7879
MapDifficulty.DungeonHeroic
7980
}, bySpell[59082]);
80-
CollectionAssert.AreEquivalent(new MapDifficulty[]
81-
{
82-
MapDifficulty.DungeonHeroic
83-
}, bySpell[59083]);
8481
}
8582
}
8683
}

0 commit comments

Comments
 (0)