@@ -24,7 +24,7 @@ function Get-Sum {
24
24
return $a + $b
25
25
}
26
26
" ;
27
- ScriptFile scriptFile = new (
27
+ ScriptFile scriptFile = ScriptFile . Create (
28
28
// Use any absolute path. Even if it doesn't exist.
29
29
DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
30
30
text ,
@@ -61,7 +61,7 @@ function Get-Sum {
61
61
public void TokenizesStringExpansion ( )
62
62
{
63
63
const string text = "Write-Host \" $(Test-Property Get-Whatever) $(Get-Whatever)\" " ;
64
- ScriptFile scriptFile = new (
64
+ ScriptFile scriptFile = ScriptFile . Create (
65
65
// Use any absolute path. Even if it doesn't exist.
66
66
DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
67
67
text ,
@@ -88,7 +88,7 @@ function Get-A*A {
88
88
}
89
89
Get-A*A
90
90
" ;
91
- ScriptFile scriptFile = new (
91
+ ScriptFile scriptFile = ScriptFile . Create (
92
92
// Use any absolute path. Even if it doesn't exist.
93
93
DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
94
94
text ,
@@ -113,7 +113,7 @@ function Get-A*A {
113
113
public void RecognizesArrayPropertyInExpandableString ( )
114
114
{
115
115
const string text = "\" $(@($Array).Count) OtherText\" " ;
116
- ScriptFile scriptFile = new (
116
+ ScriptFile scriptFile = ScriptFile . Create (
117
117
// Use any absolute path. Even if it doesn't exist.
118
118
DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
119
119
text ,
@@ -138,7 +138,7 @@ public void RecognizesArrayPropertyInExpandableString()
138
138
public void RecognizesCurlyQuotedString ( )
139
139
{
140
140
const string text = "“^[-'a-z]*”" ;
141
- ScriptFile scriptFile = new (
141
+ ScriptFile scriptFile = ScriptFile . Create (
142
142
// Use any absolute path. Even if it doesn't exist.
143
143
DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
144
144
text ,
@@ -158,7 +158,7 @@ enum MyEnum{
158
158
three
159
159
}
160
160
" ;
161
- ScriptFile scriptFile = new (
161
+ ScriptFile scriptFile = ScriptFile . Create (
162
162
// Use any absolute path. Even if it doesn't exist.
163
163
DocumentUri . FromFileSystemPath ( Path . Combine ( Path . GetTempPath ( ) , "TestFile.ps1" ) ) ,
164
164
text ,
0 commit comments