@@ -213,7 +213,6 @@ public void TestBundleOverridesScriptMetadata()
213213 }
214214
215215 [ Test ]
216- < << << << HEAD
217216 public void TestLoggingLevelConfigFromIni ( )
218217 {
219218 var configPath = Path . Combine ( TestTempDir , "pyRevit_config_logging.ini" ) ;
@@ -316,41 +315,6 @@ public void TestFileLoggingAndAutoUpdateConfigFromIni()
316315 Assert . AreEqual ( "C:\\ custom.css" , PyRevitConfig . Load ( configPath2 ) . OutputStyleSheet ) ;
317316
318317 Assert . Pass ( "FileLogging / AutoUpdate / OutputStyleSheet config parsing validated successfully." ) ;
319- = == == ==
320- public void TestRocketModeConfigFromIni ( )
321- {
322- var configPath = Path . Combine ( TestTempDir , "pyRevit_config.ini" ) ;
323-
324- // Default value: false when not set
325- File . WriteAllText ( configPath , "" ) ;
326- var config1 = PyRevitConfig . Load ( configPath ) ;
327- Assert . IsFalse ( config1 . RocketMode , "Default RocketMode should be false when not set" ) ;
328-
329- // Explicit true
330- File . WriteAllText ( configPath , "[core]\n rocketmode = true" ) ;
331- var config2 = PyRevitConfig . Load ( configPath ) ;
332- Assert . IsTrue ( config2 . RocketMode , "RocketMode should be true when explicitly set" ) ;
333-
334- // Explicit false
335- File . WriteAllText ( configPath , "[core]\n rocketmode = false" ) ;
336- var config3 = PyRevitConfig . Load ( configPath ) ;
337- Assert . IsFalse ( config3 . RocketMode , "RocketMode should be false when explicitly set" ) ;
338-
339- // Case insensitive
340- File . WriteAllText ( configPath , "[core]\n rocketmode = TRUE" ) ;
341- var config4 = PyRevitConfig . Load ( configPath ) ;
342- Assert . IsTrue ( config4 . RocketMode , "RocketMode should be case-insensitive" ) ;
343-
344- // Round-trip write/read
345- var configPath2 = Path . Combine ( TestTempDir , "pyRevit_config_rw.ini" ) ;
346- File . WriteAllText ( configPath2 , "" ) ;
347- var configRw = PyRevitConfig . Load ( configPath2 ) ;
348- configRw . RocketMode = true ;
349- var configRw2 = PyRevitConfig . Load ( configPath2 ) ;
350- Assert . IsTrue ( configRw2 . RocketMode , "RocketMode should persist after write" ) ;
351-
352- Assert . Pass ( "RocketMode config parsing validated successfully." ) ;
353- > >>> >>> 31 ab6878c4dc2f642a734320882ea92867626f4f
354318 }
355319
356320 [ Test ]
0 commit comments