@@ -47,20 +47,20 @@ Describe "Type name serialization" {
47
47
It " Serializes the name of type <InputType> to <ExpectedName>" - TestCases $typeNameTestCases {
48
48
param ([type ]$InputType , [string ]$ExpectedName )
49
49
50
- $name = [Microsoft.PowerShell.CrossCompatibility.Utility. TypeNaming ]::GetFullTypeName($InputType )
50
+ $name = [Microsoft.PowerShell.CrossCompatibility.TypeNaming ]::GetFullTypeName($InputType )
51
51
$name | Should - BeExactly $ExpectedName
52
52
}
53
53
54
54
It " Null type throws exception" {
55
55
{
56
- [Microsoft.PowerShell.CrossCompatibility.Utility. TypeNaming ]::GetFullTypeName($null )
56
+ [Microsoft.PowerShell.CrossCompatibility.TypeNaming ]::GetFullTypeName($null )
57
57
} | Should - Throw - ErrorId " ArgumentNullException"
58
58
}
59
59
60
60
It " Strips generic quantifiers from '<RawTypeName>' to return '<StrippedTypeName>'" - TestCases $genericStrippingTests {
61
61
param ([string ]$RawTypeName , [string ]$StrippedTypeName )
62
62
63
- $stripped = [Microsoft.PowerShell.CrossCompatibility.Utility. TypeNaming ]::StripGenericQuantifiers($RawTypeName )
63
+ $stripped = [Microsoft.PowerShell.CrossCompatibility.TypeNaming ]::StripGenericQuantifiers($RawTypeName )
64
64
$stripped | Should - BeExactly $StrippedTypeName
65
65
}
66
66
}
@@ -90,7 +90,7 @@ Describe "Type accelerator expansion" {
90
90
91
91
$typeName = Get-TypeNameAstFromScript - Script $Raw
92
92
93
- $canonicalName = [Microsoft.PowerShell.CrossCompatibility.Utility. TypeNaming ]::GetCanonicalTypeName($typeAccelerators , $typeName )
93
+ $canonicalName = [Microsoft.PowerShell.CrossCompatibility.TypeNaming ]::GetCanonicalTypeName($typeAccelerators , $typeName )
94
94
95
95
$canonicalName | Should - BeExactly $Expanded
96
96
0 commit comments