/
githubmirror
/
PowerShell
Обзор
Документация
Войти
/
githubmirror
/
PowerShell
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/xUnit/csharp/test_MshSnapinInfo.cs
32 строки
1018 B
Dongbo Wang
Remove the `ProcessorArchitecture` portion from the full name as it's obsolete (#18320)
18 окт 2022, 21:52
Не верифицирован
18 окт 2022, 21:52
01948ae
Код
Авторство
О чём код?
// 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); } } }