Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b6b18dd

Browse files
committed
Merge pull request #2567 from Maxwe11/fix-registry-tests
Fix Win32.Registry tests
2 parents b128e58 + b845f29 commit b6b18dd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Microsoft.Win32.Registry/tests/Registry/Registry_SetValue_str_str_obj_valuekind.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ public void SetValueForNonExistingKey()
158158
Assert.Equal(expectedValueKind2, _testRegistryKey.GetValueKind(valueName));
159159
}
160160

161-
public IEnumerable<object[]> TestValueNames { get { return TestData.TestValueNames; } }
161+
public static IEnumerable<object[]> TestValueNames { get { return TestData.TestValueNames; } }
162162

163163
[Theory]
164-
[InlineData("TestValueNames")]
164+
[MemberData("TestValueNames")]
165165
public void SetValueWithNameTest(string valueName)
166166
{
167167
const long expectedValue = long.MaxValue;

src/Microsoft.Win32.Registry/tests/RegistryKey/RegistryKey_SetValueKind_str_obj_valueKind.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ public void SetValueForNonExistingKey()
158158
Assert.Equal(expectedValueKind2, _testRegistryKey.GetValueKind(valueName));
159159
}
160160

161-
public IEnumerable<object[]> TestValueNames { get { return TestData.TestValueNames; } }
161+
public static IEnumerable<object[]> TestValueNames { get { return TestData.TestValueNames; } }
162162

163163
[Theory]
164-
[InlineData("TestValueNames")]
164+
[MemberData("TestValueNames")]
165165
public void SetValueWithNameTest(string valueName)
166166
{
167167
const long expectedValue = long.MaxValue;

0 commit comments

Comments
 (0)