1
0
mirror of https://github.com/zhaopeiym/IoTClient synced 2025-10-26 22:15:44 +08:00
IoTClient/IoTClient.Tests/Server_tests/ModBusTcpServer_test.cs
2019-10-24 09:16:59 +08:00

24 lines
504 B
C#

using IoTServer.Common;
using IoTServer.Servers.ModBus;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Xunit;
namespace IoTClient.Tests.Server_tests
{
public class ModBusTcpServer_test
{
[Fact]
public async Task StartAsync()
{
ModBusTcpServer server = new ModBusTcpServer(int.Parse("LocalPort".GetConfig()));
server.Start();
await Task.Delay(1000 * 1000);
}
}
}