Skip to content

Commit b83d727

Browse files
committed
Add Tests for Luminode 12 and 4
1 parent 96b5a0a commit b83d727

File tree

3 files changed

+126
-2
lines changed

3 files changed

+126
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
using ArtNetSharp;
2+
3+
namespace ArtNetTests.Binary_Tests.Luminex
4+
{
5+
internal class Luminex_LumiNode12_2_6_2 : AbstractArtPollReplyBinaryTestSubject
6+
{
7+
private static readonly byte[] DATA = [
8+
0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00,
9+
0x00, 0x21, 0xc0, 0xa8, 0x14, 0xca, 0x36, 0x19,
10+
0x02, 0x06, 0x00, 0x01, 0x29, 0xdb, 0x00, 0xe3,
11+
0x4c, 0x4c, 0x4c, 0x75, 0x6d, 0x69, 0x4e, 0x6f,
12+
0x64, 0x65, 0x31, 0x32, 0x00, 0x00, 0x00, 0x00,
13+
0x00, 0x00, 0x00, 0x00, 0x4c, 0x75, 0x6d, 0x69,
14+
0x4e, 0x6f, 0x64, 0x65, 0x31, 0x32, 0x00, 0x00,
15+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
16+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
17+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
18+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
19+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
20+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
21+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
22+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
23+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
24+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
25+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
26+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
27+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
28+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
29+
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00,
30+
0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x81, 0x00,
31+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00,
32+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
33+
0x00, 0xd0, 0x69, 0x9e, 0xa0, 0x01, 0x5a, 0xc0,
34+
0xa8, 0x14, 0xca, 0x0c, 0x19, 0x00, 0x00, 0x00,
35+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
36+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
37+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ];
38+
39+
private static readonly PortTestSubject[] PORTS =
40+
[
41+
new PortTestSubject(EPortType.OutputFromArtNet,(Universe)4,(Universe)0)
42+
];
43+
public Luminex_LumiNode12_2_6_2() : base(
44+
"Luminex LumiNode 12 (FW 2.6.2)",
45+
DATA,
46+
0,
47+
"LumiNode12",
48+
"LumiNode12",
49+
new MACAddress("d0:69:9e:a0:01:5a"),
50+
new IPv4Address("192.168.20.202"),
51+
new IPv4Address("192.168.20.202"),
52+
0x29db,
53+
0x4c4c,
54+
EStCodes.StNode,
55+
PORTS,
56+
true,
57+
0x02,
58+
0x06)
59+
{
60+
}
61+
}
62+
}

ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode1.cs ArtNetTests/Binary Tests/Luminex/Luminex_LumiNode1_2_6_0.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace ArtNetTests.Binary_Tests.Luminex
44
{
5-
internal class Luminex_LumiNode1 : AbstractArtPollReplyBinaryTestSubject
5+
internal class Luminex_LumiNode1_2_6_0 : AbstractArtPollReplyBinaryTestSubject
66
{
77
private static readonly byte[] DATA = [
88
0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00,
@@ -40,7 +40,7 @@ internal class Luminex_LumiNode1 : AbstractArtPollReplyBinaryTestSubject
4040
[
4141
new PortTestSubject(EPortType.OutputFromArtNet,(Universe)0,(Universe)0)
4242
];
43-
public Luminex_LumiNode1() : base(
43+
public Luminex_LumiNode1_2_6_0() : base(
4444
"Luminex LumiNode 1 (FW 2.6.0)",
4545
DATA,
4646
0,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
using ArtNetSharp;
2+
3+
namespace ArtNetTests.Binary_Tests.Luminex
4+
{
5+
internal class Luminex_LumiNode4_2_6_2 : AbstractArtPollReplyBinaryTestSubject
6+
{
7+
private static readonly byte[] DATA = [
8+
0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00,
9+
0x00, 0x21, 0xc0, 0xa8, 0x14, 0xcc, 0x36, 0x19,
10+
0x02, 0x06, 0x00, 0x00, 0x29, 0xdc, 0x00, 0xe3,
11+
0x4c, 0x4c, 0x4c, 0x75, 0x6d, 0x69, 0x4e, 0x6f,
12+
0x64, 0x65, 0x34, 0x00, 0x00, 0x00, 0x00, 0x00,
13+
0x00, 0x00, 0x00, 0x00, 0x4c, 0x75, 0x6d, 0x69,
14+
0x4e, 0x6f, 0x64, 0x65, 0x34, 0x00, 0x00, 0x00,
15+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
16+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
17+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
18+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
19+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
20+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
21+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
22+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
23+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
24+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
25+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
26+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
27+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
28+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
29+
0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00,
30+
0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x81, 0x00,
31+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d, 0x00,
32+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
33+
0x00, 0xd0, 0x69, 0x9e, 0x9f, 0x27, 0x9b, 0xc0,
34+
0xa8, 0x14, 0xcc, 0x01, 0x19, 0x00, 0x00, 0x00,
35+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
36+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
37+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ];
38+
39+
private static readonly PortTestSubject[] PORTS =
40+
[
41+
new PortTestSubject(EPortType.OutputFromArtNet,(Universe)13,(Universe)0)
42+
];
43+
public Luminex_LumiNode4_2_6_2() : base(
44+
"Luminex LumiNode 4 (FW 2.6.2)",
45+
DATA,
46+
0,
47+
"LumiNode4",
48+
"LumiNode4",
49+
new MACAddress("d0:69:9e:9f:27:9b"),
50+
new IPv4Address("192.168.20.204"),
51+
new IPv4Address("192.168.20.204"),
52+
0x29dc,
53+
0x4c4c,
54+
EStCodes.StNode,
55+
PORTS,
56+
true,
57+
0x02,
58+
0x06)
59+
{
60+
}
61+
}
62+
}

0 commit comments

Comments
 (0)