From d8a040ca999e5b6cdd3c3eef91e5ba4c42c30a1b Mon Sep 17 00:00:00 2001 From: Sergei Vorobev Date: Tue, 26 Jul 2016 17:53:52 -0700 Subject: [PATCH] Add test for Add-Type System.Runtime.Serialization.Primitives.dll TPA --- .../Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 index f6f8d5f3b6..f59fa51108 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 @@ -12,4 +12,8 @@ public class AttributeTest$guid {} "@ Add-Type -TypeDefinition $code -PassThru | Should Not Be $null } + + It "Can load TPA assembly System.Runtime.Serialization.Primitives.dll" { + Add-Type -AssemblyName 'System.Runtime.Serialization.Primitives' -PassThru | Should Not Be $null + } }