Skip to content

Commit

Permalink
Add array node test
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscantero committed Oct 17, 2024
1 parent 6727236 commit d3e0d78
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/UserDefinedNodesTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace OpcPlc.Tests;
namespace OpcPlc.Tests;

using FluentAssertions;
using NUnit.Framework;
Expand Down Expand Up @@ -57,6 +57,10 @@ public void TestUserDefinedNodes()
.Should().NotBeNull();

FindNode(myTelemetryNode, Namespaces.OpcPlcApplications, "1033")
.Should().NotBeNull();
.Should().NotBeNull();

var arrayNodeId = FindNode(myTelemetryNode, Namespaces.OpcPlcApplications, "1048");
arrayNodeId.Should().NotBeNull();
Session.ReadValue(arrayNodeId).Value.Should().BeEquivalentTo(new int[] { 1, 2, 3, 4, 5 });
}
}

0 comments on commit d3e0d78

Please sign in to comment.