Skip to content

Commit 138737d

Browse files
Robert Holtrjmholt
authored andcommitted
Fix type naming namespace change
1 parent a76ac6c commit 138737d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PSCompatibilityCollector/Tests/UtilityApi.Tests.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,20 @@ Describe "Type name serialization" {
4747
It "Serializes the name of type <InputType> to <ExpectedName>" -TestCases $typeNameTestCases {
4848
param([type]$InputType, [string]$ExpectedName)
4949

50-
$name = [Microsoft.PowerShell.CrossCompatibility.Utility.TypeNaming]::GetFullTypeName($InputType)
50+
$name = [Microsoft.PowerShell.CrossCompatibility.TypeNaming]::GetFullTypeName($InputType)
5151
$name | Should -BeExactly $ExpectedName
5252
}
5353

5454
It "Null type throws exception" {
5555
{
56-
[Microsoft.PowerShell.CrossCompatibility.Utility.TypeNaming]::GetFullTypeName($null)
56+
[Microsoft.PowerShell.CrossCompatibility.TypeNaming]::GetFullTypeName($null)
5757
} | Should -Throw -ErrorId "ArgumentNullException"
5858
}
5959

6060
It "Strips generic quantifiers from '<RawTypeName>' to return '<StrippedTypeName>'" -TestCases $genericStrippingTests {
6161
param([string]$RawTypeName, [string]$StrippedTypeName)
6262

63-
$stripped = [Microsoft.PowerShell.CrossCompatibility.Utility.TypeNaming]::StripGenericQuantifiers($RawTypeName)
63+
$stripped = [Microsoft.PowerShell.CrossCompatibility.TypeNaming]::StripGenericQuantifiers($RawTypeName)
6464
$stripped | Should -BeExactly $StrippedTypeName
6565
}
6666
}
@@ -90,7 +90,7 @@ Describe "Type accelerator expansion" {
9090

9191
$typeName = Get-TypeNameAstFromScript -Script $Raw
9292

93-
$canonicalName = [Microsoft.PowerShell.CrossCompatibility.Utility.TypeNaming]::GetCanonicalTypeName($typeAccelerators, $typeName)
93+
$canonicalName = [Microsoft.PowerShell.CrossCompatibility.TypeNaming]::GetCanonicalTypeName($typeAccelerators, $typeName)
9494

9595
$canonicalName | Should -BeExactly $Expanded
9696

0 commit comments

Comments
 (0)