Files
PowerToys/src/modules/launcher/Plugins/Microsoft.PowerToys.Run.Plugin.Registry.UnitTest/Constants/KeyNameTest.cs
2021-01-20 19:15:45 +01:00

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);
}
}
}