@@ -15,6 +15,7 @@ public class ManageGraphicsTests
1515 private const string TempRoot = "Assets/Temp/ManageGraphicsTests" ;
1616 private bool _hasVolumeSystem ;
1717 private bool _hasURP ;
18+ private bool _hasHDRP ;
1819
1920 [ SetUp ]
2021 public void SetUp ( )
@@ -28,6 +29,7 @@ public void SetUp()
2829 var data = pingResult [ "data" ] ;
2930 _hasVolumeSystem = data ? . Value < bool > ( "hasVolumeSystem" ) ?? false ;
3031 _hasURP = data ? . Value < bool > ( "hasURP" ) ?? false ;
32+ _hasHDRP = data ? . Value < bool > ( "hasHDRP" ) ?? false ;
3133 }
3234 }
3335
@@ -72,7 +74,7 @@ public void HandleCommand_MissingAction_ReturnsError()
7274 {
7375 var result = ToJObject ( ManageGraphics . HandleCommand ( new JObject ( ) ) ) ;
7476 Assert . IsFalse ( result . Value < bool > ( "success" ) ) ;
75- Assert . That ( result [ "message " ] . ToString ( ) , Does . Contain ( "action" ) ) ;
77+ Assert . That ( result [ "error " ] . ToString ( ) , Does . Contain ( "action" ) ) ;
7678 }
7779
7880 [ Test ]
@@ -81,7 +83,7 @@ public void HandleCommand_UnknownAction_ReturnsError()
8183 var result = ToJObject ( ManageGraphics . HandleCommand (
8284 new JObject { [ "action" ] = "bogus_action" } ) ) ;
8385 Assert . IsFalse ( result . Value < bool > ( "success" ) ) ;
84- Assert . That ( result [ "message " ] . ToString ( ) , Does . Contain ( "Unknown action" ) ) ;
86+ Assert . That ( result [ "error " ] . ToString ( ) , Does . Contain ( "Unknown action" ) ) ;
8587 }
8688
8789 [ Test ]
@@ -539,7 +541,7 @@ public void BakeSetProbePositions_WrongComponent_ReturnsError()
539541 [ "positions" ] = new JArray { new JArray ( 0 , 0 , 0 ) }
540542 } ) ) ;
541543 Assert . IsFalse ( result . Value < bool > ( "success" ) ) ;
542- Assert . That ( result [ "message " ] . ToString ( ) , Does . Contain ( "LightProbeGroup" ) ) ;
544+ Assert . That ( result [ "error " ] . ToString ( ) , Does . Contain ( "LightProbeGroup" ) ) ;
543545 }
544546
545547 // =====================================================================
@@ -598,7 +600,7 @@ public void StatsSetSceneDebug_InvalidMode_ReturnsError()
598600 [ "mode" ] = "InvalidMode"
599601 } ) ) ;
600602 Assert . IsFalse ( result . Value < bool > ( "success" ) ) ;
601- Assert . That ( result [ "message " ] . ToString ( ) , Does . Contain ( "Valid:" ) ) ;
603+ Assert . That ( result [ "error " ] . ToString ( ) , Does . Contain ( "Valid:" ) ) ;
602604 }
603605
604606 // =====================================================================
@@ -618,6 +620,7 @@ public void PipelineGetInfo_ReturnsPipelineName()
618620 [ Test ]
619621 public void PipelineGetSettings_ReturnsSettings ( )
620622 {
623+ Assume . That ( _hasURP || _hasHDRP , "Built-in pipeline has no settings asset — skipping." ) ;
621624 var result = ToJObject ( ManageGraphics . HandleCommand (
622625 new JObject { [ "action" ] = "pipeline_get_settings" } ) ) ;
623626 Assert . IsTrue ( result . Value < bool > ( "success" ) , result . ToString ( ) ) ;
@@ -635,7 +638,7 @@ public void PipelineSetQuality_InvalidLevel_ReturnsError()
635638 [ "level" ] = "NonExistentLevel"
636639 } ) ) ;
637640 Assert . IsFalse ( result . Value < bool > ( "success" ) ) ;
638- Assert . That ( result [ "message " ] . ToString ( ) , Does . Contain ( "Available:" ) ) ;
641+ Assert . That ( result [ "error " ] . ToString ( ) , Does . Contain ( "Available:" ) ) ;
639642 }
640643
641644 // =====================================================================
0 commit comments