@@ -20,7 +20,10 @@ public async Task ContentLoader_LoadAllAsync_Works()
2020 // Helper to setup mock response for a file
2121 void SetupMock ( string url , string fileName )
2222 {
23- var content = File . ReadAllText ( Path . Combine ( dataDir , fileName ) ) ;
23+ var path = Path . Combine ( dataDir , fileName ) ;
24+ if ( ! File . Exists ( path ) ) throw new FileNotFoundException ( $ "Test file not found: { path } ") ;
25+
26+ var content = File . ReadAllText ( path ) ;
2427 handlerMock
2528 . Protected ( )
2629 . Setup < Task < HttpResponseMessage > > (
@@ -35,20 +38,13 @@ void SetupMock(string url, string fileName)
3538 } ) ;
3639 }
3740
38- SetupMock ( "data/items.json" , "items.json" ) ;
39- SetupMock ( "data/stats.json" , "stats.json" ) ;
40- SetupMock ( "data/cadence_abilities.json" , "cadence_abilities.json" ) ;
41- SetupMock ( "data/quests.json" , "quests.json" ) ;
42- SetupMock ( "data/locations.json" , "locations.json" ) ;
43- SetupMock ( "data/cadences.json" , "cadences.json" ) ;
44- SetupMock ( "data/quest_details.json" , "quest_details.json" ) ;
45- SetupMock ( "data/quest_unlocks.json" , "quest_unlocks.json" ) ;
46- SetupMock ( "data/refinements.json" , "refinements.json" ) ;
47- SetupMock ( "data/quest_cadence_unlocks.json" , "quest_cadence_unlocks.json" ) ;
41+ // Only these two files are loaded by the new ContentLoader
42+ SetupMock ( "data/content_graph.json" , "content_graph.json" ) ;
4843 SetupMock ( "data/stat_augments.json" , "stat_augments.json" ) ;
4944
5045 var httpClient = new HttpClient ( handlerMock . Object ) { BaseAddress = new Uri ( "http://test.com/" ) } ;
5146
47+
5248 // 2. Instantiate ContentLoader
5349 var loader = new ContentLoader (
5450 httpClient ,
@@ -62,6 +58,7 @@ void SetupMock(string url, string fileName)
6258 ContentHost . GetContent < QuestUnlocks > ( ) ,
6359 ContentHost . GetContent < ItemRefinements > ( ) ,
6460 ContentHost . GetContent < StatAugments > ( ) ,
61+ ContentHost . GetContent < AbilityAugments > ( ) ,
6562 ContentHost . GetContent < QuestToCadenceUnlocks > ( )
6663 ) ;
6764
0 commit comments