Added implementation of Modbus TCP Server
This commit is contained in:
@@ -161,8 +161,8 @@ namespace AMWD.Protocols.Modbus.Tests.Tcp.Utils
|
||||
public async Task ShouldThrowApplicationExceptionHostnameNotResolvable()
|
||||
{
|
||||
// Arrange
|
||||
_hostname = "123.321.123.321";
|
||||
var connection = GetConnection();
|
||||
connection.GetType().GetField("_hostname", BindingFlags.NonPublic | BindingFlags.Instance).SetValue(connection, "");
|
||||
|
||||
// Act
|
||||
await connection.ConnectAsync();
|
||||
|
||||
Reference in New Issue
Block a user