@@ -47,7 +47,7 @@ public void ParallelHistorySaving()
4747 } ;
4848
4949 typeof ( SetPSReadLineOption )
50- . GetField ( "_historySavePath " , BindingFlags . Instance | BindingFlags . NonPublic )
50+ . GetField ( "_historySavePathText " , BindingFlags . Instance | BindingFlags . NonPublic )
5151 . SetValue ( options , historySavingFile ) ;
5252
5353 PSConsoleReadLine . SetOptions ( options ) ;
@@ -99,7 +99,7 @@ public void SensitiveHistoryDefaultBehavior_One()
9999 Test ( "" , Keys ( _ . UpArrow , _ . DownArrow ) ) ;
100100
101101 var options = PSConsoleReadLine . GetOptions ( ) ;
102- var oldHistoryFilePath = options . HistorySavePath ;
102+ var oldHistoryFilePath = options . HistorySavePathText ;
103103 var oldHistorySaveStyle = options . HistorySaveStyle ;
104104
105105 // AddToHistoryHandler should be set to the default handler.
@@ -136,7 +136,7 @@ public void SensitiveHistoryDefaultBehavior_One()
136136
137137 try
138138 {
139- options . HistorySavePath = newHistoryFilePath ;
139+ options . HistorySavePathText = newHistoryFilePath ;
140140 options . HistorySaveStyle = newHistorySaveStyle ;
141141 SetHistory ( expectedHistoryItems ) ;
142142
@@ -158,7 +158,7 @@ public void SensitiveHistoryDefaultBehavior_One()
158158 }
159159 finally
160160 {
161- options . HistorySavePath = oldHistoryFilePath ;
161+ options . HistorySavePathText = oldHistoryFilePath ;
162162 options . HistorySaveStyle = oldHistorySaveStyle ;
163163 File . Delete ( newHistoryFilePath ) ;
164164 }
@@ -173,7 +173,7 @@ public void SensitiveHistoryDefaultBehavior_Two()
173173 SetHistory ( ) ;
174174
175175 var options = PSConsoleReadLine . GetOptions ( ) ;
176- var oldHistoryFilePath = options . HistorySavePath ;
176+ var oldHistoryFilePath = options . HistorySavePathText ;
177177 var oldHistorySaveStyle = options . HistorySaveStyle ;
178178
179179 // AddToHistoryHandler should be set to the default handler.
@@ -253,7 +253,7 @@ public void SensitiveHistoryDefaultBehavior_Two()
253253
254254 try
255255 {
256- options . HistorySavePath = newHistoryFilePath ;
256+ options . HistorySavePathText = newHistoryFilePath ;
257257 options . HistorySaveStyle = newHistorySaveStyle ;
258258 SetHistory ( expectedHistoryItems ) ;
259259
@@ -275,7 +275,7 @@ public void SensitiveHistoryDefaultBehavior_Two()
275275 }
276276 finally
277277 {
278- options . HistorySavePath = oldHistoryFilePath ;
278+ options . HistorySavePathText = oldHistoryFilePath ;
279279 options . HistorySaveStyle = oldHistorySaveStyle ;
280280 File . Delete ( newHistoryFilePath ) ;
281281 }
@@ -291,7 +291,7 @@ public void SensitiveHistoryOptionalBehavior()
291291 Test ( "" , Keys ( _ . UpArrow , _ . DownArrow ) ) ;
292292
293293 var options = PSConsoleReadLine . GetOptions ( ) ;
294- var oldHistoryFilePath = options . HistorySavePath ;
294+ var oldHistoryFilePath = options . HistorySavePathText ;
295295 var oldHistorySaveStyle = options . HistorySaveStyle ;
296296
297297 // AddToHistoryHandler should be set to the default handler.
@@ -328,7 +328,7 @@ public void SensitiveHistoryOptionalBehavior()
328328
329329 try
330330 {
331- options . HistorySavePath = newHistoryFilePath ;
331+ options . HistorySavePathText = newHistoryFilePath ;
332332 options . HistorySaveStyle = newHistorySaveStyle ;
333333
334334 //
@@ -417,7 +417,7 @@ public void SensitiveHistoryOptionalBehavior()
417417 }
418418 finally
419419 {
420- options . HistorySavePath = oldHistoryFilePath ;
420+ options . HistorySavePathText = oldHistoryFilePath ;
421421 options . HistorySaveStyle = oldHistorySaveStyle ;
422422 options . AddToHistoryHandler = PSConsoleReadLineOptions . DefaultAddToHistoryHandler ;
423423 File . Delete ( newHistoryFilePath ) ;
@@ -434,7 +434,7 @@ public void SensitiveHistoryOptionalBehaviorWithScriptBlock()
434434 Test ( "" , Keys ( _ . UpArrow , _ . DownArrow ) ) ;
435435
436436 var options = PSConsoleReadLine . GetOptions ( ) ;
437- var oldHistoryFilePath = options . HistorySavePath ;
437+ var oldHistoryFilePath = options . HistorySavePathText ;
438438 var oldHistorySaveStyle = options . HistorySaveStyle ;
439439
440440 // AddToHistoryHandler should be set to the default handler.
@@ -481,7 +481,7 @@ public void SensitiveHistoryOptionalBehaviorWithScriptBlock()
481481
482482 try
483483 {
484- options . HistorySavePath = newHistoryFilePath ;
484+ options . HistorySavePathText = newHistoryFilePath ;
485485 options . HistorySaveStyle = newHistorySaveStyle ;
486486
487487 //
@@ -570,7 +570,7 @@ public void SensitiveHistoryOptionalBehaviorWithScriptBlock()
570570 }
571571 finally
572572 {
573- options . HistorySavePath = oldHistoryFilePath ;
573+ options . HistorySavePathText = oldHistoryFilePath ;
574574 options . HistorySaveStyle = oldHistorySaveStyle ;
575575 options . AddToHistoryHandler = PSConsoleReadLineOptions . DefaultAddToHistoryHandler ;
576576 File . Delete ( newHistoryFilePath ) ;
0 commit comments