예제 #1
0
        public void CanParseEndpoint(string endpoint)
        {
            // Arrange
            var expected = IPEndPoint.Parse(endpoint);

            // Act
            var success = ModbusUtils.TryParseEndpoint(endpoint, out var actual);

            // Assert
            Assert.True(success);
            Assert.Equal(expected, actual);
        }