KeyNameTest.cs
1 // Copyright (c) Microsoft Corporation 2 // The Microsoft Corporation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using Microsoft.CmdPal.Ext.Registry.Constants; 6 using Microsoft.VisualStudio.TestTools.UnitTesting; 7 8 namespace Microsoft.CmdPal.Ext.Registry.UnitTests; 9 10 [TestClass] 11 public class KeyNameTest 12 { 13 [TestMethod] 14 [DataRow("HKEY", KeyName.FirstPart)] 15 [DataRow("HKEY_", KeyName.FirstPartUnderscore)] 16 [DataRow("HKCR", KeyName.ClassRootShort)] 17 [DataRow("HKCC", KeyName.CurrentConfigShort)] 18 [DataRow("HKCU", KeyName.CurrentUserShort)] 19 [DataRow("HKLM", KeyName.LocalMachineShort)] 20 [DataRow("HKPD", KeyName.PerformanceDataShort)] 21 [DataRow("HKU", KeyName.UsersShort)] 22 public void TestConstants(string shortName, string baseName) 23 { 24 Assert.AreEqual(shortName, baseName); 25 } 26 }