Skip to content

Commit

Permalink
CleanUp
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Dec 11, 2023
1 parent 1bf8264 commit 7521a97
Show file tree
Hide file tree
Showing 58 changed files with 36 additions and 192 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetBackgroundQueuedStatusPolicyDescriptionResponseTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetBackgroundQueuedStatusPolicyResponseTest
Expand Down
7 changes: 2 additions & 5 deletions RDMSharpTests/RDM/GetBindingAndControlFieldsTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetBindingAndControlFieldsTest
Expand All @@ -13,7 +10,7 @@ public void Setup()
[Test]
public void ToPayloadAndFromMessageTest()
{
GetBindingAndControlFieldsRequest getBindingAndControlFieldsRequest = new GetBindingAndControlFieldsRequest(1, new RDMUID(1233,4231414));
GetBindingAndControlFieldsRequest getBindingAndControlFieldsRequest = new GetBindingAndControlFieldsRequest(1, new RDMUID(1233, 4231414));
byte[] data = getBindingAndControlFieldsRequest.ToPayloadData();

RDMMessage message = new RDMMessage()
Expand All @@ -28,7 +25,7 @@ public void ToPayloadAndFromMessageTest()

Assert.That(resultGetBindingAndControlFieldsRequest, Is.EqualTo(getBindingAndControlFieldsRequest));

GetBindingAndControlFieldsResponse getBindingAndControlFieldsResponse = new GetBindingAndControlFieldsResponse(1, new RDMUID(1213,34444),1234, new RDMUID(542, 476436));
GetBindingAndControlFieldsResponse getBindingAndControlFieldsResponse = new GetBindingAndControlFieldsResponse(1, new RDMUID(1213, 34444), 1234, new RDMUID(542, 476436));
data = getBindingAndControlFieldsResponse.ToPayloadData();

message = new RDMMessage()
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetBrokerStatusResponseTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetBrokerStatusResponseTest
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetEndpointListResponseTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetEndpointListResponseTest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetEndpointResponderListChangeResponseTest
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetEndpointRespondersResponseTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetEndpointRespondersResponseTest
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetEndpointTimingDescriptionResponseTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetEndpointTimingDescriptionResponseTest
Expand Down
5 changes: 1 addition & 4 deletions RDMSharpTests/RDM/GetHardwareAddressResponseTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetHardwareAddressResponseTest
Expand All @@ -13,7 +10,7 @@ public void Setup()
[Test]
public void ToPayloadAndFromMessageTest()
{
GetHardwareAddressResponse getHardwareAddressResponse = new GetHardwareAddressResponse(1,MACAddress.Parse("02:42:c0:a8:01:09"));
GetHardwareAddressResponse getHardwareAddressResponse = new GetHardwareAddressResponse(1, MACAddress.Parse("02:42:c0:a8:01:09"));
byte[] data = getHardwareAddressResponse.ToPayloadData();

RDMMessage message = new RDMMessage()
Expand Down
2 changes: 0 additions & 2 deletions RDMSharpTests/RDM/GetIPv4CurrentAddressResponseTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;
using NUnit.Framework;
using System.Net;

namespace RDMSharpTest.RDM
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetInterfaceListResponseTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetInterfaceListResponseTest
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetInterfaceNameResponseTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetInterfaceNameResponseTest
Expand Down
2 changes: 0 additions & 2 deletions RDMSharpTests/RDM/GetSetComponentScopeTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;
using NUnit.Framework;
using System.Net;

namespace RDMSharpTest.RDM
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetSetDiscoveryStateTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetSetDiscoveryStateTest
Expand Down
4 changes: 0 additions & 4 deletions RDMSharpTests/RDM/GetSetEndpointBackgroundDiscoveryTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@

using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetSetEndpointBackgroundDiscoveryTest
Expand Down
5 changes: 1 addition & 4 deletions RDMSharpTests/RDM/GetSetEndpointLabelTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetSetEndpointLabelTest
Expand All @@ -13,7 +10,7 @@ public void Setup()
[Test]
public void ToPayloadAndFromMessageTest()
{
GetSetEndpointLabel getSetEndpointLabel = new GetSetEndpointLabel(1,"Pseudo Endpoint Label");
GetSetEndpointLabel getSetEndpointLabel = new GetSetEndpointLabel(1, "Pseudo Endpoint Label");
byte[] data = getSetEndpointLabel.ToPayloadData();

RDMMessage message = new RDMMessage()
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetSetEndpointModeTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetSetEndpointModeTest
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetSetEndpointRDMTrafficEnableTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetSetEndpointRDMTrafficEnableTest
Expand Down
5 changes: 1 addition & 4 deletions RDMSharpTests/RDM/GetSetEndpointTimingTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetSetEndpointTimingTest
Expand All @@ -13,7 +10,7 @@ public void Setup()
[Test]
public void ToPayloadAndFromMessageTest()
{
GetEndpointTimingResponse getEndpointTimingResponse = new GetEndpointTimingResponse(1, 123,254);
GetEndpointTimingResponse getEndpointTimingResponse = new GetEndpointTimingResponse(1, 123, 254);
byte[] data = getEndpointTimingResponse.ToPayloadData();

RDMMessage message = new RDMMessage()
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetSetEndpointToUniverseTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetSetEndpointToUniverseTest
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetSetIPV4_xxx_ModeTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetSetIPV4_xxx_ModeTest
Expand Down
2 changes: 0 additions & 2 deletions RDMSharpTests/RDM/GetSetIPv4DefaultRouteTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;
using NUnit.Framework;
using System.Net;

namespace RDMSharpTest.RDM
Expand Down
2 changes: 0 additions & 2 deletions RDMSharpTests/RDM/GetSetIPv4StaticAddressTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;
using NUnit.Framework;
using System.Net;

namespace RDMSharpTest.RDM
Expand Down
3 changes: 0 additions & 3 deletions RDMSharpTests/RDM/GetSetIdentifyEndpointTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class GetSetIdentifyEndpointTest
Expand Down
14 changes: 5 additions & 9 deletions RDMSharpTests/RDM/ParameterWrappersTest.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
using RDMSharp;
using NUnit.Framework;
using System;
using RDMSharp.ParameterWrapper;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using RDMSharp.ParameterWrapper;

namespace RDMSharpTest.RDM
{
Expand Down Expand Up @@ -150,8 +146,8 @@ public class ParameterWrappersTest
ERDM_Parameter.SMPS_CALIBRATION,
ERDM_Parameter.WIRELESS_DMX,
ERDM_Parameter.CRMX_BRIDGE_MODE
};
};

private RDMParameterWrapperCatalogueManager manager;
private ERDM_Parameter[] parameters;
private ReadOnlyCollection<IRDMParameterWrapper> parameterWrappers;
Expand Down Expand Up @@ -227,8 +223,8 @@ public void AssemblyListenerTest()
Assert.That(parameterWrappers.Count(pw => pw.Parameter == parameter), Is.EqualTo(1), $"There are more then one ParameterWrapper for the Parameter: {parameter}");

foreach (ERDM_Parameter parameter in e1_33Parameters)
Assert.That(parameterWrappers.Count(pw => pw.Parameter == parameter), Is.EqualTo(1), $"There are more then one ParameterWrapper for the Parameter: {parameter}");
Assert.That(parameterWrappers.Count(pw => pw.Parameter == parameter), Is.EqualTo(1), $"There are more then one ParameterWrapper for the Parameter: {parameter}");

foreach (ERDM_Parameter parameter in sgmParameters)
Assert.That(parameterWrappers.Count(pw => pw.Parameter == parameter), Is.EqualTo(1), $"There are more then one ParameterWrapper for the Parameter: {parameter}");

Expand Down
5 changes: 1 addition & 4 deletions RDMSharpTests/RDM/RDMCommunicationStatusTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class RDMCommunicationStatusTest
Expand All @@ -13,7 +10,7 @@ public void Setup()
[Test]
public void ToPayloadAndFromMessageTest()
{
RDMCommunicationStatus communicationStatus = new RDMCommunicationStatus(55,42,11880);
RDMCommunicationStatus communicationStatus = new RDMCommunicationStatus(55, 42, 11880);

byte[] data = communicationStatus.ToPayloadData();

Expand Down
4 changes: 1 addition & 3 deletions RDMSharpTests/RDM/RDMCurveDescriptionTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;

namespace RDMSharpTest.RDM
{
public class RDMCurveDescriptionTest
Expand All @@ -12,7 +10,7 @@ public void Setup()
[Test]
public void ToPayloadAndFromMessageTest()
{
RDMCurveDescription curveDescription = new RDMCurveDescription(1,"Pseudo Curve");
RDMCurveDescription curveDescription = new RDMCurveDescription(1, "Pseudo Curve");
byte[] data = curveDescription.ToPayloadData();

RDMMessage message = new RDMMessage()
Expand Down
2 changes: 0 additions & 2 deletions RDMSharpTests/RDM/RDMCurveTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;

namespace RDMSharpTest.RDM
{
public class RDMCurveTest
Expand Down
5 changes: 1 addition & 4 deletions RDMSharpTests/RDM/RDMDMXBlockAddressTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class RDMDMXBlockAddressTEst
Expand All @@ -13,7 +10,7 @@ public void Setup()
[Test]
public void ToPayloadAndFromMessageTest()
{
RDMDMXBlockAddress dmxBlockAddress = new RDMDMXBlockAddress(3,443);
RDMDMXBlockAddress dmxBlockAddress = new RDMDMXBlockAddress(3, 443);

byte[] data = dmxBlockAddress.ToPayloadData();

Expand Down
2 changes: 0 additions & 2 deletions RDMSharpTests/RDM/RDMDMXPersonalityDescriptionTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;

namespace RDMSharpTest.RDM
{
public class RDMDMXPersonalityDescriptionTest
Expand Down
2 changes: 0 additions & 2 deletions RDMSharpTests/RDM/RDMDMXPersonalityTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;

namespace RDMSharpTest.RDM
{
public class RDMDMXPersonalityTest
Expand Down
5 changes: 1 addition & 4 deletions RDMSharpTests/RDM/RDMDMX_xxxx_ModeTest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using RDMSharp;
using NUnit.Framework;

namespace RDMSharpTest.RDM
{
public class RDMDMX_xxxx_ModeTest
Expand All @@ -13,7 +10,7 @@ public void Setup()
[Test]
public void ToPayloadAndFromMessageTest()
{
RDMDMX_xxxx_Mode dmxFailMode = new RDMDMX_xxxx_Mode(55,42,11880);
RDMDMX_xxxx_Mode dmxFailMode = new RDMDMX_xxxx_Mode(55, 42, 11880);

byte[] data = dmxFailMode.ToPayloadData();

Expand Down
2 changes: 0 additions & 2 deletions RDMSharpTests/RDM/RDMDeviceInfoTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;

namespace RDMSharpTest.RDM
{
public class RDMDeviceInfoTest
Expand Down
2 changes: 0 additions & 2 deletions RDMSharpTests/RDM/RDMDimmerInfoTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;

namespace RDMSharpTest.RDM
{
public class RDMDimmerInfoTest
Expand Down
4 changes: 1 addition & 3 deletions RDMSharpTests/RDM/RDMLockStateDescriptionTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;

namespace RDMSharpTest.RDM
{
public class RDMLockStateDescriptionTest
Expand All @@ -12,7 +10,7 @@ public void Setup()
[Test]
public void ToPayloadAndFromMessageTest()
{
RDMLockStateDescription lockStateDescription = new RDMLockStateDescription(1,"Pseudo LockState");
RDMLockStateDescription lockStateDescription = new RDMLockStateDescription(1, "Pseudo LockState");
byte[] data = lockStateDescription.ToPayloadData();

RDMMessage message = new RDMMessage()
Expand Down
2 changes: 0 additions & 2 deletions RDMSharpTests/RDM/RDMLockStateTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using RDMSharp;

namespace RDMSharpTest.RDM
{
public class RDMLockStateTest
Expand Down
10 changes: 3 additions & 7 deletions RDMSharpTests/RDM/RDMMessageFactoryTest.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
using RDMSharp;
using NUnit.Framework;
using System.Linq;

namespace RDMSharpTest.RDM
namespace RDMSharpTest.RDM
{
public class RDMMessageFactoryTest
{
Expand Down Expand Up @@ -57,8 +53,8 @@ public void TestBuildDIscUniqueBranchResponse_CorrectNoPreample()

Assert.That(m, Is.Not.Null);
Assert.That(m.Command, Is.EqualTo(ERDM_Command.DISCOVERY_COMMAND_RESPONSE));
Assert.That(m.Parameter,Is.EqualTo(ERDM_Parameter.DISC_UNIQUE_BRANCH));
Assert.That(m.SourceUID.ManufacturerID,Is.EqualTo((ushort)0xACBD));
Assert.That(m.Parameter, Is.EqualTo(ERDM_Parameter.DISC_UNIQUE_BRANCH));
Assert.That(m.SourceUID.ManufacturerID, Is.EqualTo((ushort)0xACBD));
Assert.That(m.SourceUID.DeviceID, Is.EqualTo(0x12345678u));
}

Expand Down
Loading

0 comments on commit 7521a97

Please sign in to comment.