Apply code style formatting and restore partial modifiers on Avalonia views

Linter/formatter pass across the full codebase. Restores required partial
keyword on AXAML code-behind classes that the formatter incorrectly removed.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Joseph Doherty
2026-03-31 07:58:13 -04:00
parent 55ef854612
commit 41a6b66943
221 changed files with 4274 additions and 3823 deletions

View File

@@ -11,16 +11,16 @@ using ZB.MOM.WW.LmxOpcUa.Tests.Helpers;
namespace ZB.MOM.WW.LmxOpcUa.Tests.MxAccess
{
/// <summary>
/// Verifies the background connectivity monitor used to reconnect the MXAccess bridge after faults or stale probes.
/// Verifies the background connectivity monitor used to reconnect the MXAccess bridge after faults or stale probes.
/// </summary>
public class MxAccessClientMonitorTests : IDisposable
{
private readonly StaComThread _staThread;
private readonly FakeMxProxy _proxy;
private readonly PerformanceMetrics _metrics;
private readonly FakeMxProxy _proxy;
private readonly StaComThread _staThread;
/// <summary>
/// Initializes the monitor test fixture with a shared STA thread, fake proxy, and metrics collector.
/// Initializes the monitor test fixture with a shared STA thread, fake proxy, and metrics collector.
/// </summary>
public MxAccessClientMonitorTests()
{
@@ -31,7 +31,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.MxAccess
}
/// <summary>
/// Disposes the monitor test fixture resources.
/// Disposes the monitor test fixture resources.
/// </summary>
public void Dispose()
{
@@ -40,7 +40,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.MxAccess
}
/// <summary>
/// Confirms that the monitor reconnects the client after an observed disconnect.
/// Confirms that the monitor reconnects the client after an observed disconnect.
/// </summary>
[Fact]
public async Task Monitor_ReconnectsOnDisconnect()
@@ -67,7 +67,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.MxAccess
}
/// <summary>
/// Confirms that the monitor can be started and stopped without throwing.
/// Confirms that the monitor can be started and stopped without throwing.
/// </summary>
[Fact]
public async Task Monitor_StopsOnCancel()
@@ -85,7 +85,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.MxAccess
}
/// <summary>
/// Confirms that a stale probe tag triggers a reconnect when monitoring is enabled.
/// Confirms that a stale probe tag triggers a reconnect when monitoring is enabled.
/// </summary>
[Fact]
public async Task Monitor_ProbeStale_ForcesReconnect()
@@ -112,7 +112,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.MxAccess
}
/// <summary>
/// Confirms that fresh probe updates prevent unnecessary reconnects.
/// Confirms that fresh probe updates prevent unnecessary reconnects.
/// </summary>
[Fact]
public async Task Monitor_ProbeDataChange_PreventsStaleReconnect()
@@ -130,10 +130,10 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.MxAccess
client.StartMonitor();
// Continuously simulate probe data changes to keep it fresh
for (int i = 0; i < 8; i++)
for (var i = 0; i < 8; i++)
{
await Task.Delay(500);
_proxy.SimulateDataChangeByAddress("TestProbe", i, 192);
_proxy.SimulateDataChangeByAddress("TestProbe", i);
}
client.StopMonitor();
@@ -144,7 +144,7 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.MxAccess
}
/// <summary>
/// Confirms that enabling the monitor without a probe tag does not trigger false reconnects.
/// Confirms that enabling the monitor without a probe tag does not trigger false reconnects.
/// </summary>
[Fact]
public async Task Monitor_NoProbeConfigured_NoFalseReconnect()
@@ -169,4 +169,4 @@ namespace ZB.MOM.WW.LmxOpcUa.Tests.MxAccess
client.Dispose();
}
}
}
}