Files
Nonemm/tests/Nonemm.Digital.Tests/WindowsControlSetupTests.cs
T
erikbrockoandClaude Sonnet 5.5 c18d79ba5a Run the digital bridge on Windows
The bridge launched its helper only through Wine. It now starts any
process, so on Windows it runs the helper directly. WineBridgeChannel is
renamed ProcessBridgeChannel.

WindowsControlSetup sets up the control side on Windows. The digital
dialog, AppSession, README and docs/digital-bridge.md describe the
Windows setup. publish-windows.sh builds a Windows release.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-23 21:56:47 +00:00

35 lines
994 B
C#

using Nonemm.Digital;
namespace Nonemm.Digital.Tests;
public class WindowsControlSetupTests
{
[Fact]
public void ASixtyFourBitWindowsRegistersWithTheCopyInSysWow64()
{
string windows = Directory.CreateTempSubdirectory().FullName;
Directory.CreateDirectory(Path.Combine(windows, "SysWOW64"));
Assert.Equal(
Path.Combine(windows, "SysWOW64", "regsvr32.exe"),
WindowsControlSetup.Regsvr32Path(windows));
}
[Fact]
public void AThirtyTwoBitWindowsRegistersWithTheCopyInSystem32()
{
string windows = Directory.CreateTempSubdirectory().FullName;
Assert.Equal(
Path.Combine(windows, "System32", "regsvr32.exe"),
WindowsControlSetup.Regsvr32Path(windows));
}
[Fact]
public async Task AControlThatIsNotThereIsSaidSo()
{
await Assert.ThrowsAsync<FileNotFoundException>(
() => new WindowsControlSetup().RegisterAsync("/nowhere/XMMT.ocx"));
}
}