diff --git a/test/UnitTest1.cs b/test/UnitTest1.cs index e3c41b4..d3dc428 100644 --- a/test/UnitTest1.cs +++ b/test/UnitTest1.cs @@ -45,8 +45,8 @@ namespace RoboidControl.test { [Test] public void Test_SiteParticipant() { - SiteServer siteServer = new SiteServer(7681); - ParticipantUDP participant = new ParticipantUDP("127.0.0.1", 7681); + SiteServer siteServer = new(7681); + ParticipantUDP participant = new("127.0.0.1", 7681, 7682); ulong milliseconds = (ulong)DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); ulong startTime = milliseconds; @@ -58,14 +58,14 @@ namespace RoboidControl.test { milliseconds = (ulong)DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); } - Assert.That(participant.networkId, Is.EqualTo(1)); + Assert.That(participant.networkId, Is.EqualTo(2)); } [Test] public void Test_ThingMsg() { - SiteServer siteServer = new SiteServer(7681); - ParticipantUDP participant = new ParticipantUDP("127.0.0.1"); - Thing thing = new Thing(participant) { + SiteServer siteServer = new(7681); + ParticipantUDP participant = new("127.0.0.1", 7681, 7682); + Thing thing = new(participant) { name = "First Thing", modelUrl = "https://passer.life/extras/ant.jpg" }; @@ -80,7 +80,7 @@ namespace RoboidControl.test { milliseconds = (ulong)DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(); } - Assert.That(participant.networkId, Is.EqualTo(1)); + Assert.That(participant.networkId, Is.EqualTo(2)); } } }