@@ -69,10 +69,11 @@ public sealed class FocasWriteInfrastructureTests
|
||||
public async Task DriverLevel_Writes_enabled_per_tag_Writable_true_dispatches_to_wire_client()
|
||||
{
|
||||
// F4-a's wire dispatch surface is unchanged — when both flags are flipped, the call
|
||||
// reaches the (fake) wire client, which by default returns Good. F4-b will introduce
|
||||
// BadNotSupported branches for kinds the wire layer hasn't implemented yet.
|
||||
// reaches the (fake) wire client, which by default returns Good. F4-b/F4-c add per-kind
|
||||
// gates (AllowParameter / AllowMacro / AllowPmc); PMC byte writes route through the
|
||||
// typed WritePmcRangeAsync entry point post-F4-c so we assert on PmcRangeWriteLog.
|
||||
var drv = NewDriver(
|
||||
writes: new FocasWritesOptions { Enabled = true },
|
||||
writes: new FocasWritesOptions { Enabled = true, AllowPmc = true },
|
||||
tags:
|
||||
[
|
||||
new FocasTagDefinition("X", "focas://10.0.0.5:8193", "R100", FocasDataType.Byte, Writable: true),
|
||||
@@ -84,7 +85,7 @@ public sealed class FocasWriteInfrastructureTests
|
||||
[new WriteRequest("X", (sbyte)1)], CancellationToken.None);
|
||||
|
||||
results.Single().StatusCode.ShouldBe(FocasStatusMapper.Good);
|
||||
factory.Clients[0].WriteLog.Count.ShouldBe(1);
|
||||
factory.Clients[0].PmcRangeWriteLog.Count.ShouldBe(1);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user