Skip to content

Commit

Permalink
Add Test for LumenRadio Stardust
Browse files Browse the repository at this point in the history
Fix Tests not test Versioning
  • Loading branch information
patrick-dmxc committed Jul 2, 2024
1 parent e62c162 commit 06ffee3
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 41 deletions.
5 changes: 5 additions & 0 deletions ArtNetTests/Binary Tests/ArtPollReplyBinaryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public void TestAll()
Assert.That(artPollReply.OemCode, Is.EqualTo(testSubject.OemCode));
Assert.That(artPollReply.ManufacturerCode, Is.EqualTo(testSubject.ManufacturerCode));
Assert.That(artPollReply.Style, Is.EqualTo(testSubject.StyleCode));
if(testSubject.MajorVersion.HasValue)
Assert.That(artPollReply.MajorVersion, Is.EqualTo(testSubject.MajorVersion));
if (testSubject.MinorVersion.HasValue)
Assert.That(artPollReply.MinorVersion, Is.EqualTo(testSubject.MinorVersion));
Assert.That(artPollReply.Ports, Is.EqualTo(testSubject.Ports.Length));
Assert.That(artPollReply.PortTypes, Has.Length.EqualTo(testSubject.Ports.Length));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public DMXControl3_SW_3_3_RC2() : base(
EStCodes.StController,
PORTS,
true,
0,
3,
0,
null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace ArtNetTests.Binary_Tests.ELC
{
internal class ELC_Node8gb_1_51 : AbstractArtPollReplyBinaryTestSubject
internal class ELC_Node8gb_2_70 : AbstractArtPollReplyBinaryTestSubject
{
private static readonly byte[] DATA = [
0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00,
Expand Down Expand Up @@ -43,8 +43,8 @@ internal class ELC_Node8gb_1_51 : AbstractArtPollReplyBinaryTestSubject
new PortTestSubject(EPortType.OutputFromArtNet,(Address)7,(Address)0),
new PortTestSubject(EPortType.OutputFromArtNet,(Address)8,(Address)0)
];
public ELC_Node8gb_1_51() : base(
"ELC Node8gb (FW 1.51)",
public ELC_Node8gb_2_70() : base(
"ELC Node8gb (FW 2.70",
DATA,
0,
"dmXLAN node8s",
Expand All @@ -58,7 +58,7 @@ public ELC_Node8gb_1_51() : base(
PORTS,
true,
1,
51)
14)
{
}
}
Expand Down
2 changes: 1 addition & 1 deletion ArtNetTests/Binary Tests/ELC/ELC_Node8gbx_1_51.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public ELC_Node8gbx_1_51() : base(
PORTS,
true,
1,
51)
14)
{
}
}
Expand Down
2 changes: 1 addition & 1 deletion ArtNetTests/Binary Tests/ELC/ELC_Node8gbx_1_53.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public ELC_Node8gbx_1_53() : base(
PORTS,
true,
1,
53)
14)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ internal class Elation_Obisdian_RDM10_2_9_2 : AbstractArtPollReplyBinaryTestSubj
{
private static readonly byte[] DATA = [
0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00,
0x00, 0x21, 0x02, 0x6a, 0x4e, 0x13, 0x36, 0x19,
0x02, 0x5e, 0x00, 0x00, 0x2a, 0x1e, 0x00, 0xe2,
0x00, 0x21, 0x02, 0x5e, 0x4a, 0x67, 0x36, 0x19,
0x02, 0x5c, 0x00, 0x00, 0x2a, 0x1e, 0x00, 0xe2,
0xa6, 0x22, 0x50, 0x6f, 0x72, 0x74, 0x20, 0x31,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x4e, 0x45, 0x54, 0x52,
0x4f, 0x4e, 0x20, 0x52, 0x44, 0x4d, 0x31, 0x30,
0x28, 0x34, 0x32, 0x3a, 0x34, 0x43, 0x3a, 0x41,
0x32, 0x3a, 0x32, 0x32, 0x3a, 0x34, 0x45, 0x3a,
0x31, 0x33, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
Expand All @@ -26,29 +23,32 @@ internal class Elation_Obisdian_RDM10_2_9_2 : AbstractArtPollReplyBinaryTestSubj
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x40, 0x00,
0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00,
0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x80, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x42, 0x4c, 0xa2, 0x22, 0x4e, 0x13, 0x02,
0x6a, 0x4e, 0x13, 0x01, 0xdd, 0xc0, 0x00, 0x00,
0x00, 0x3c, 0x22, 0xa6, 0x06, 0xd3, 0x02, 0x28,
0x00, 0x42, 0x4c, 0x4a, 0x16, 0x4a, 0x67, 0x02,
0x5e, 0x4a, 0x67, 0x01, 0xdd, 0xc0, 0x00, 0x00,
0x00, 0x3c, 0x22, 0xa6, 0x06, 0xd3, 0x01, 0x67,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ];

private static readonly PortTestSubject[] PORTS =
[
new PortTestSubject(EPortType.InputToArtNet,(Universe)0,(Universe)0)
new PortTestSubject(EPortType.OutputFromArtNet,(Universe)0,(Universe)0)
];
public Elation_Obisdian_RDM10_2_9_2() : base(
"Elation Obsidian RDM10 (FW 2.9.2)",
DATA,
0,
"Port 1",
"NETRON RDM10(42:4C:A2:22:4E:13)",
new MACAddress("42:4c:a2:22:4e:13"),
new IPv4Address("2.106.78.19"),
new IPv4Address("2.106.78.19"),
"NETRON RDM10",
new MACAddress("42:4c:4a:16:4a:67"),
new IPv4Address("2.94.74.103"),
new IPv4Address("2.94.74.103"),
0x2a1e,
0x22a6,
EStCodes.StNode,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@ internal class Elation_Obisdian_RDM10_2_9_4 : AbstractArtPollReplyBinaryTestSubj
{
private static readonly byte[] DATA = [
0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00,
0x00, 0x21, 0x02, 0x5e, 0x4a, 0x67, 0x36, 0x19,
0x02, 0x5c, 0x00, 0x00, 0x2a, 0x1e, 0x00, 0xe2,
0x00, 0x21, 0x02, 0x6a, 0x4e, 0x13, 0x36, 0x19,
0x02, 0x5e, 0x00, 0x00, 0x2a, 0x1e, 0x00, 0xe2,
0xa6, 0x22, 0x50, 0x6f, 0x72, 0x74, 0x20, 0x31,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x4e, 0x45, 0x54, 0x52,
0x4f, 0x4e, 0x20, 0x52, 0x44, 0x4d, 0x31, 0x30,
0x28, 0x34, 0x32, 0x3a, 0x34, 0x43, 0x3a, 0x41,
0x32, 0x3a, 0x32, 0x32, 0x3a, 0x34, 0x45, 0x3a,
0x31, 0x33, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
Expand All @@ -23,32 +26,29 @@ internal class Elation_Obisdian_RDM10_2_9_4 : AbstractArtPollReplyBinaryTestSubj
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00,
0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x80, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x40, 0x00,
0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x42, 0x4c, 0x4a, 0x16, 0x4a, 0x67, 0x02,
0x5e, 0x4a, 0x67, 0x01, 0xdd, 0xc0, 0x00, 0x00,
0x00, 0x3c, 0x22, 0xa6, 0x06, 0xd3, 0x01, 0x67,
0x00, 0x42, 0x4c, 0xa2, 0x22, 0x4e, 0x13, 0x02,
0x6a, 0x4e, 0x13, 0x01, 0xdd, 0xc0, 0x00, 0x00,
0x00, 0x3c, 0x22, 0xa6, 0x06, 0xd3, 0x02, 0x28,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ];

private static readonly PortTestSubject[] PORTS =
[
new PortTestSubject(EPortType.OutputFromArtNet,(Universe)0,(Universe)0)
new PortTestSubject(EPortType.InputToArtNet,(Universe)0,(Universe)0)
];
public Elation_Obisdian_RDM10_2_9_4() : base(
"Elation Obsidian RDM10 (FW 2.9.4)",
DATA,
0,
"Port 1",
"NETRON RDM10",
new MACAddress("42:4c:4a:16:4a:67"),
new IPv4Address("2.94.74.103"),
new IPv4Address("2.94.74.103"),
"NETRON RDM10(42:4C:A2:22:4E:13)",
new MACAddress("42:4c:a2:22:4e:13"),
new IPv4Address("2.106.78.19"),
new IPv4Address("2.106.78.19"),
0x2a1e,
0x22a6,
EStCodes.StNode,
Expand Down
62 changes: 62 additions & 0 deletions ArtNetTests/Binary Tests/LumenRadio/LumenRadio_Stardust_1_x_x.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
using ArtNetSharp;

namespace ArtNetTests.Binary_Tests.LumenRadio
{
internal class LumenRadio_Stardust_1_x_x : AbstractArtPollReplyBinaryTestSubject
{
private static readonly byte[] DATA = [
0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00,
0x00, 0x21, 0xc0, 0xa8, 0x7b, 0x8d, 0x36, 0x19,
0x10, 0x42, 0x7f, 0x0f, 0x09, 0xf6, 0x00, 0xe2,
0x55, 0x4c, 0x53, 0x74, 0x61, 0x72, 0x64, 0x75,
0x73, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x53, 0x74, 0x61, 0x72,
0x64, 0x75, 0x73, 0x74, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x23, 0x30, 0x30, 0x30,
0x31, 0x20, 0x5b, 0x30, 0x78, 0x30, 0x30, 0x30,
0x31, 0x5d, 0x20, 0x50, 0x6f, 0x77, 0x65, 0x72,
0x20, 0x4f, 0x4b, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x81, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0xe4, 0x5f, 0x01, 0xc0, 0x1f, 0xad, 0xc0,
0xa8, 0x7b, 0x8d, 0x05, 0x1d, 0x80, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ];

private static readonly PortTestSubject[] PORTS =
[
new PortTestSubject(EPortType.DMX512,(Universe)15,(Universe)0)
];
public LumenRadio_Stardust_1_x_x() : base(
"LumenRadio Stardust (FW 1.x.x)",
DATA,
127,
"Stardust",
"Stardust",
new MACAddress("e4:5f:01:c0:1f:ad"),
new IPv4Address("192.168.123.141"),
new IPv4Address("192.168.123.141"),
0x09f6,
0x4c55,
EStCodes.StNode,
PORTS,
true,
0x10,
0x42)
{
}
}
}
4 changes: 2 additions & 2 deletions ArtNetTests/Binary Tests/Pknight/Pknight_CR011R.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public Pknight_CR011R() : base(
EStCodes.StNode,
PORTS,
false, //Compleatly Buggy. Provided by Mario from Berlin
1,
2)
0,
14)
{
}
}
Expand Down
4 changes: 2 additions & 2 deletions ArtNetTests/Binary Tests/QLC+/QLC_Plus_5_0_0_Beta3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ public QLC_Plus_5_0_0_Beta3() : base(
EStCodes.StNode,
PORTS,
false, // PortType of not used Port Set to 0x80 instead of 0x00!
0,
0)
4,
32)
{
}
}
Expand Down

0 comments on commit 06ffee3

Please sign in to comment.