=== Summary: 675 files | 7 generated | 484 fresh | 4605 untracked | 4268 adopted | 355 marked | 466 validated-ok | 2+0 stale (sig+body) | 0 skipped | 0 failed | elapsed 11:08:11.442 (40091.44s) ===
This commit is contained in:
@@ -23,6 +23,7 @@ public class RelayServiceTest
|
||||
/// <summary>
|
||||
/// Sets up the test environment by initializing mocks and dependencies required for unit testing the <see cref="RelayService"/>, including logger, HTTP client factory, HTTP message handler, relay settings, point-of-care service, and relay repository.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=dee8bf2 body=f8dc12e -->
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
@@ -62,6 +63,8 @@ public class RelayServiceTest
|
||||
/// <summary>
|
||||
/// Verifies that the relay service successfully powers off a relay by issuing an HTTP request through the configured HTTP client factory.
|
||||
/// </summary>
|
||||
/// <!-- aidoc-review:v1 severity=high kind=wrong_summary
|
||||
/// "The summary claims the test 'verifies that the relay service successfully powers off a relay', but the test contains no assertions—it only sets up mocks and calls PowerOff without verifying any outcome." -->
|
||||
[Test]
|
||||
public async Task PowerOffAsync()
|
||||
{
|
||||
@@ -100,6 +103,7 @@ public class RelayServiceTest
|
||||
/// <summary>
|
||||
/// Verifies that <see cref="RelayService.PowerOn"/> correctly sends a power-on request to the configured relay device using the HTTP client.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=44fe1e4 body=914160c -->
|
||||
[Test]
|
||||
public async Task PowerOnAsync()
|
||||
{
|
||||
@@ -138,6 +142,7 @@ public class RelayServiceTest
|
||||
/// <summary>
|
||||
/// Verifies that <c>CheckRelayStatus</c> returns <see cref="RelayEnum.Status.On"/> when the mocked HTTP response indicates the relay is on.
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=2a547df body=bf57c2c -->
|
||||
[Test]
|
||||
public async Task CheckRelayStatus_Return_On()
|
||||
{
|
||||
@@ -226,6 +231,7 @@ public class RelayServiceTest
|
||||
/// driver response does not match a recognized on/off state (e.g., the raw payload "\\Off" is not
|
||||
/// mapped to a known status).
|
||||
/// </summary>
|
||||
/// <!-- aidoc:v1 sig=85fcbc2 body=fd57b78 -->
|
||||
[Test]
|
||||
public async Task CheckRelayStatus_Return_Unknown()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user