forked from PowerShell/PowerShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_MshSnapinInfo.cs
More file actions
32 lines (29 loc) · 1018 Bytes
/
Copy pathtest_MshSnapinInfo.cs
File metadata and controls
32 lines (29 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System;
using System.Management.Automation;
using Xunit;
namespace PSTests.Parallel
{
// Not static because a test requires non-const variables
public class MshSnapinInfoTests
{
// Test that it does not throw an exception
[SkippableFact]
public void TestReadRegistryInfo()
{
Skip.IfNot(Platform.IsWindows);
Version someVersion = null;
string someString = null;
PSSnapInReader.ReadRegistryInfo(out someVersion, out someString, out someString, out someString, out someVersion);
}
// PublicKeyToken is null on Linux
[SkippableFact]
public void TestReadCoreEngineSnapIn()
{
Skip.IfNot(Platform.IsWindows);
PSSnapInInfo pSSnapInInfo = PSSnapInReader.ReadCoreEngineSnapIn();
Assert.Contains("PublicKeyToken=31bf3856ad364e35", pSSnapInInfo.AssemblyName);
}
}
}