using System.Net.Sockets;
using MbUnit.Framework;
using Modbus.Device;

namespace Modbus.IntegrationTests
{
	[TestFixture]
	public class NModbusUdpMasterNModbusUdpSlaveFixture : ModbusMasterFixture
	{
		[TestFixtureSetUp]
		public override void Init()
		{
			base.Init();

			SlaveUdp = new UdpClient(Port);
			Slave = ModbusUdpSlave.CreateUdp(SlaveUdp);
			StartSlave();

			MasterUdp = new UdpClient();
			MasterUdp.Connect(DefaultModbusIPEndPoint);
			Master = ModbusIpMaster.CreateIp(MasterUdp);
		}

		[Test]
		public override void ReadCoils()
		{
			base.ReadCoils();
		}

		[Test]
		public override void SimpleReadRegistersPerformanceTest()
		{
			base.SimpleReadRegistersPerformanceTest();
		}
	}
}
