Skip to content

Commit e0c964c

Browse files
committed
Add referenced assemblies to Add-Type for Script Analyzer tests
1 parent 4dc245a commit e0c964c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/QA/ScriptAnalyzer.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ BeforeDiscovery {
3939
(from Indented.ScriptAnalyzerRules) can properly parse parameters that uses SMO types,
4040
e.g. [Microsoft.SqlServer.Management.Smo.Server].
4141
#>
42-
Add-Type -Path "$PSScriptRoot/../Unit/Stubs/SMO.cs"
42+
Add-Type -Path "$PSScriptRoot/../Unit/Stubs/SMO.cs" -ReferencedAssemblies 'System.Data', 'System.Xml'
4343

4444
$repositoryPath = Resolve-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath '../..')
4545
$sourcePath = Join-Path -Path $repositoryPath -ChildPath 'source'

0 commit comments

Comments
 (0)