test: migrate SDK 2.0 wire contracts and pin baseline aggregate vectors
This commit is contained in:
+5
-5
@@ -183,13 +183,13 @@ public sealed class AclServerObjectModelChangeTests
|
||||
return (session, events, item, subscription);
|
||||
}
|
||||
|
||||
private static bool NamesEqA(VariantCollection e) => Names(e, EqA);
|
||||
private static bool NamesEqA(ArrayOf<Variant> e) => Names(e, EqA);
|
||||
|
||||
/// <summary>Whether a model-change event's <c>Changes</c> name the node whose identifier is <paramref name="id"/>.</summary>
|
||||
private static bool Names(VariantCollection e, string id) =>
|
||||
e[RecordedEvents.ChangesField].Value is ExtensionObject[] changes
|
||||
&& changes.Any(c => c.Body is ModelChangeStructureDataType { Affected: { } affected }
|
||||
&& affected.Identifier as string == id);
|
||||
private static bool Names(ArrayOf<Variant> e, string id) =>
|
||||
e[RecordedEvents.ChangesField].ClrValue()! is ExtensionObject[] changes
|
||||
&& changes.Any(c => ExtensionObject.ToEncodeable(c) is ModelChangeStructureDataType { Affected: { } affected }
|
||||
&& affected.IdentifierAsString == id);
|
||||
|
||||
/// <summary>Every device write fails, so the node manager reverts and audits it.</summary>
|
||||
private sealed class RejectingGateway : IOpcUaNodeWriteGateway
|
||||
|
||||
Reference in New Issue
Block a user