feat(dcl): BrowseNext continuation paging + StubOpcUaClient canned browse (T15)
This commit is contained in:
+2
-2
@@ -25,7 +25,7 @@ public class OpcUaDataConnectionBrowseTests
|
||||
var expected = new BrowseChildrenResult(
|
||||
new[] { new BrowseNode("ns=2;s=X", "X", BrowseNodeClass.Variable, false) },
|
||||
Truncated: false);
|
||||
client.BrowseChildrenAsync("ns=2;s=Parent", Arg.Any<CancellationToken>())
|
||||
client.BrowseChildrenAsync("ns=2;s=Parent", Arg.Any<string?>(), Arg.Any<CancellationToken>())
|
||||
.Returns(expected);
|
||||
|
||||
var adapter = new OpcUaDataConnection(factory, NullLogger<OpcUaDataConnection>.Instance);
|
||||
@@ -36,6 +36,6 @@ public class OpcUaDataConnectionBrowseTests
|
||||
var actual = await adapter.BrowseChildrenAsync("ns=2;s=Parent");
|
||||
|
||||
Assert.Same(expected, actual);
|
||||
await client.Received(1).BrowseChildrenAsync("ns=2;s=Parent", Arg.Any<CancellationToken>());
|
||||
await client.Received(1).BrowseChildrenAsync("ns=2;s=Parent", Arg.Any<string?>(), Arg.Any<CancellationToken>());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user