Files
Explorer-Workbench/tests/Explorer.Hosting.Tests/HostLogonAutostartTests.cs

17 lines
599 B
C#

using Explorer.Hosting;
namespace Explorer.Hosting.Tests;
public class HostLogonAutostartTests
{
[Fact]
public void Run_command_is_the_quoted_host_exe_for_the_current_user()
{
var command = HostLogonAutostart.RunCommand(@"C:\Tools\Explorer.Host.exe");
Assert.Equal("\"C:\\Tools\\Explorer.Host.exe\"", command);
Assert.Equal("ExplorerWorkbenchHost", HostLogonAutostart.RunValueName);
Assert.DoesNotContain("/RU", command, StringComparison.OrdinalIgnoreCase);
Assert.DoesNotContain("ONSTART", command, StringComparison.OrdinalIgnoreCase);
}
}