@@ -24,7 +24,7 @@ function Get-Sum {
2424 return $a + $b
2525}
2626" ;
27- ScriptFile scriptFile = new (
27+ ScriptFile scriptFile = ScriptFile . Create (
2828 // Use any absolute path. Even if it doesn't exist.
2929 DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
3030 text ,
@@ -61,7 +61,7 @@ function Get-Sum {
6161 public void TokenizesStringExpansion ( )
6262 {
6363 const string text = "Write-Host \" $(Test-Property Get-Whatever) $(Get-Whatever)\" " ;
64- ScriptFile scriptFile = new (
64+ ScriptFile scriptFile = ScriptFile . Create (
6565 // Use any absolute path. Even if it doesn't exist.
6666 DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
6767 text ,
@@ -88,7 +88,7 @@ function Get-A*A {
8888}
8989Get-A*A
9090" ;
91- ScriptFile scriptFile = new (
91+ ScriptFile scriptFile = ScriptFile . Create (
9292 // Use any absolute path. Even if it doesn't exist.
9393 DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
9494 text ,
@@ -113,7 +113,7 @@ function Get-A*A {
113113 public void RecognizesArrayPropertyInExpandableString ( )
114114 {
115115 const string text = "\" $(@($Array).Count) OtherText\" " ;
116- ScriptFile scriptFile = new (
116+ ScriptFile scriptFile = ScriptFile . Create (
117117 // Use any absolute path. Even if it doesn't exist.
118118 DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
119119 text ,
@@ -138,7 +138,7 @@ public void RecognizesArrayPropertyInExpandableString()
138138 public void RecognizesCurlyQuotedString ( )
139139 {
140140 const string text = "“^[-'a-z]*”" ;
141- ScriptFile scriptFile = new (
141+ ScriptFile scriptFile = ScriptFile . Create (
142142 // Use any absolute path. Even if it doesn't exist.
143143 DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
144144 text ,
@@ -158,7 +158,7 @@ enum MyEnum{
158158 three
159159}
160160" ;
161- ScriptFile scriptFile = new (
161+ ScriptFile scriptFile = ScriptFile . Create (
162162 // Use any absolute path. Even if it doesn't exist.
163163 DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
164164 text ,
0 commit comments