You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The class does not implement IScriptExtent interface anymore.
The purpose of CorrectionExtent is to emit violation extent
and the correction text but this behaviour is not consistent with
the IScriptExtent interface.
It "throws if end line number is less than start line number" {
15
22
$text="Get-ChildItem"
16
-
$endColumnNumber=$text.Length
17
-
{[Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.CorrectionExtent]::new($filename,$startLineNumber,$startColumnNumber,$endLineNumber,$endColumnNumber,"T")} | Should Throw
23
+
{$type::new(2,1,1,$text.Length+1,$text,"newfile")} | Should Throw"start line number"
24
+
}
25
+
26
+
It "throws if end column number is less than start column number for same line" {
27
+
$text="start-process"
28
+
{$type::new(1,1,2,1,$text,"newfile")} | Should Throw"start column number"
0 commit comments