diff --git a/ArtNetTests/NetworkTest.cs b/ArtNetTests/NetworkTest.cs index bca5bf2..adb963f 100644 --- a/ArtNetTests/NetworkTest.cs +++ b/ArtNetTests/NetworkTest.cs @@ -31,7 +31,7 @@ public void TestNodeInstance() for (int i = 0; i < 60; i++) Thread.Sleep(1000); artNet.RemoveInstance(instance); - instance.Dispose(); + ((IDisposable)instance).Dispose(); } [Test] @@ -45,7 +45,7 @@ public void TestControllerInstance() for (int i = 0; i < 60; i++) Thread.Sleep(1000); artNet.RemoveInstance(instance); - instance.Dispose(); + ((IDisposable)instance).Dispose(); } @@ -82,7 +82,7 @@ public void TestDMXTrafficInstance() for (int i = 0; i < 20; i++) Thread.Sleep(1000); artNet.RemoveInstance(instance); - instance.Dispose(); + ((IDisposable)instance).Dispose(); } [Test] @@ -151,7 +151,7 @@ void Instance_RDMMessageReceived(object? sender, RDMMessage e) Thread.Sleep(10000); artNet.RemoveInstance(instance); - instance.Dispose(); + ((IDisposable)instance).Dispose(); } [Test] @@ -180,7 +180,7 @@ public void TestRDMDeviceInstance() Thread.Sleep(60000); artNet.RemoveInstance(instance); - instance.Dispose(); + ((IDisposable)instance).Dispose(); } @@ -200,7 +200,7 @@ public void TestSendTimeCode() Thread.Sleep(100); } artNet.RemoveInstance(instance); - instance.Dispose(); + ((IDisposable)instance).Dispose(); } [Test] @@ -218,7 +218,7 @@ public void TestSendTimeSync() Thread.Sleep(1000); } artNet.RemoveInstance(instance); - instance.Dispose(); + ((IDisposable)instance).Dispose(); } [Test] @@ -246,7 +246,7 @@ public void TestSendAddress() Thread.Sleep(1000); artNet.RemoveInstance(instance); - instance.Dispose(); + ((IDisposable)instance).Dispose(); } } } \ No newline at end of file