mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Update .NET SDK version from 7.0.100-preview.5.22307.18 to 7.0.100-preview.6.22352.1 (#17634)
This commit is contained in:
@@ -504,7 +504,7 @@ Describe "Type inference Tests" -tags "CI" {
|
||||
It "Infers typeof Select-Object when Parameter is ExcludeProperty" {
|
||||
$res = [AstTypeInference]::InferTypeOf( { [io.fileinfo]::new("file") | Select-Object -ExcludeProperty *Time*, E* }.Ast)
|
||||
$res.Count | Should -Be 1
|
||||
$res[0].Name | Should -BeExactly "System.Management.Automation.PSObject#Attributes:BaseName:Directory:DirectoryName:FullName:IsReadOnly:Length:LengthString:LinkTarget:LinkType:Mode:ModeWithoutHardLink:Name:NameString:ResolvedTarget:Target:VersionInfo"
|
||||
$res[0].Name | Should -BeExactly "System.Management.Automation.PSObject#Attributes:BaseName:Directory:DirectoryName:FullName:IsReadOnly:Length:LengthString:LinkTarget:LinkType:Mode:ModeWithoutHardLink:Name:NameString:ResolvedTarget:Target:UnixFileMode:VersionInfo"
|
||||
$names = $res[0].Members.Name
|
||||
$names -contains "BaseName" | Should -BeTrue
|
||||
$names -contains "Name" | Should -BeTrue
|
||||
|
||||
Reference in New Issue
Block a user