mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
28 lines
1005 B
C#
28 lines
1005 B
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using Microsoft.PowerToys.Run.Plugin.Registry.Constants;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
namespace Microsoft.PowerToys.Run.Plugin.Registry.UnitTest.Constants
|
|
{
|
|
[TestClass]
|
|
public sealed class KeyNameTest
|
|
{
|
|
[TestMethod]
|
|
[DataRow("HKEY", KeyName.FirstPart)]
|
|
[DataRow("HKEY_", KeyName.FirstPartUnderscore)]
|
|
[DataRow("HKCR", KeyName.ClassRootShort)]
|
|
[DataRow("HKCC", KeyName.CurrentConfigShort)]
|
|
[DataRow("HKCU", KeyName.CurrentUserShort)]
|
|
[DataRow("HKLM", KeyName.LocalMachineShort)]
|
|
[DataRow("HKPD", KeyName.PerformanceDataShort)]
|
|
[DataRow("HKU", KeyName.UsersShort)]
|
|
public void TestConstants(string shortName, string baseName)
|
|
{
|
|
Assert.AreEqual(shortName, baseName);
|
|
}
|
|
}
|
|
}
|