Cleanup of references and correction of comments.

This commit is contained in:
Schmitti91
2023-10-23 07:58:13 +02:00
parent ac41c04f67
commit 307ea42a0f
5 changed files with 2 additions and 11 deletions

View File

@@ -1,5 +1,4 @@
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Runtime.Versioning;

View File

@@ -1,5 +1,4 @@
using Microsoft.Win32;
using System;
using System.Runtime.Versioning;
namespace mRemoteNG.Tools.WindowsRegistry

View File

@@ -1,7 +1,4 @@
using Amazon.EC2.Model;
using Google.Protobuf.WellKnownTypes;
using Microsoft.Win32;
using MySqlX.XDevAPI.Common;
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.IO;
@@ -12,7 +9,7 @@ using System.Security;
namespace mRemoteNG.Tools.WindowsRegistry
{
/// <summary>
/// This class implements the IRegistryRead and IRegistryWrite interfaces and provides methods for interacting with the Windows Registry.
/// This class interacting with the Windows Registry.
/// </summary>
[SupportedOSPlatform("windows")]
public class WindowsRegistry : IRegistry, IRegistryRead, IRegistryWrite

View File

@@ -111,12 +111,10 @@ namespace mRemoteNG.Tools.WindowsRegistry
/// - The registry value type is set
/// - The key path is set
/// - The value name is set
/// - The value data is set
/// </summary>
/// <returns>Returns true if the key is write-ready, otherwise false.</returns>
public bool IsKeyWritable() {
return (IsHiveSet() && IsValueKindSet() && IsPathSet() && IsNameSet());
//return (IsHiveSet() && IsValueKindSet() && IsPathSet() && IsNameSet() && IsValueSet());
}
#endregion

View File

@@ -3,8 +3,6 @@ using System.Collections.Generic;
using System.Linq;
using Microsoft.Win32;
using mRemoteNG.Tools.WindowsRegistry;
using MySqlX.XDevAPI.Common;
using NSubstitute.ExceptionExtensions;
using NUnit.Framework;
namespace mRemoteNGTests.Tools.Registry