File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
WDE.WoWHeadConnector.Test Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change
1
+ using System ;
1
2
using System . Linq ;
2
3
using System . Threading . Tasks ;
3
4
using NUnit . Framework ;
@@ -55,7 +56,7 @@ public async Task TestHexthralledSoldierTbc()
55
56
public async Task TestModes ( )
56
57
{
57
58
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 ( ) ) ;
59
60
60
61
CollectionAssert . AreEquivalent ( new MapDifficulty [ ]
61
62
{
@@ -77,10 +78,6 @@ public async Task TestModes()
77
78
{
78
79
MapDifficulty . DungeonHeroic
79
80
} , bySpell [ 59082 ] ) ;
80
- CollectionAssert . AreEquivalent ( new MapDifficulty [ ]
81
- {
82
- MapDifficulty . DungeonHeroic
83
- } , bySpell [ 59083 ] ) ;
84
81
}
85
82
}
86
83
}
You can’t perform that action at this time.
0 commit comments