Skip to content

Commit f878276

Browse files
committed
Add Test for ShowtecNet2 V1.1
1 parent b72869f commit f878276

File tree

2 files changed

+64
-2
lines changed

2 files changed

+64
-2
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
using ArtNetSharp;
2+
3+
namespace ArtNetTests.Binary_Tests.Showtec
4+
{
5+
internal class Showtec_Net2_V1_1 : AbstractArtPollReplyBinaryTestSubject
6+
{
7+
private static readonly byte[] DATA = [
8+
0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00,
9+
0x00, 0x21, 0xc0, 0xa8, 0x1d, 0xa5, 0x36, 0x19,
10+
0x01, 0x01, 0x00, 0x02, 0xff, 0xff, 0x00, 0xe2,
11+
0xff, 0xff, 0x50, 0x6f, 0x72, 0x74, 0x20, 0x32,
12+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
13+
0x00, 0x00, 0x00, 0x00, 0x4e, 0x65, 0x74, 0x57,
14+
0x6f, 0x72, 0x6b, 0x20, 0x4e, 0x6f, 0x64, 0x65,
15+
0x20, 0x32, 0x28, 0x34, 0x32, 0x3a, 0x34, 0x43,
16+
0x3a, 0x46, 0x38, 0x3a, 0x42, 0x43, 0x3a, 0x35,
17+
0x44, 0x3a, 0x43, 0x37, 0x29, 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, 0x80, 0x00,
31+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
32+
0x00, 0x00, 0x64, 0x00, 0x00, 0x00, 0x00, 0x00,
33+
0x00, 0x42, 0x4c, 0xf8, 0xbc, 0x5d, 0xc7, 0xc0,
34+
0xa8, 0x1d, 0xa5, 0x02, 0xdf, 0x40, 0x00, 0x00,
35+
0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
36+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
37+
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 ];
38+
39+
private static readonly PortTestSubject[] PORTS =
40+
[
41+
new PortTestSubject(EPortType.OutputFromArtNet,(PortAddress)32,(PortAddress)32)
42+
];
43+
public Showtec_Net2_V1_1() : base(
44+
"Showtec Net2 (FW 1.1)",
45+
DATA,
46+
0,
47+
"Port 2",
48+
"NetWork Node 2(42:4C:F8:BC:5D:C7)",
49+
new MACAddress("42:4c:f8:bc:5d:c7"),
50+
new IPv4Address("192.168.29.165"),
51+
new IPv4Address("192.168.29.165"),
52+
0xffff,
53+
0xffff,
54+
EStCodes.StNode,
55+
PORTS,
56+
true,
57+
1,
58+
1)
59+
{
60+
}
61+
}
62+
}

ArtNetTests/Binary Tests/Showtec/Showtec_Net2.cs renamed to ArtNetTests/Binary Tests/Showtec/Showtec_Net2_V1_2.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace ArtNetTests.Binary_Tests.Showtec
44
{
5-
internal class Showtec_Net2 : AbstractArtPollReplyBinaryTestSubject
5+
internal class Showtec_Net2_V1_2 : AbstractArtPollReplyBinaryTestSubject
66
{
77
private static readonly byte[] DATA = [
88
0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00,
@@ -40,7 +40,7 @@ internal class Showtec_Net2 : AbstractArtPollReplyBinaryTestSubject
4040
[
4141
new PortTestSubject(EPortType.OutputFromArtNet,(PortAddress)259,(PortAddress)259)
4242
];
43-
public Showtec_Net2() : base(
43+
public Showtec_Net2_V1_2() : base(
4444
"Showtec Net2 (FW 1.2)",
4545
DATA,
4646
1,

0 commit comments

Comments
 (0)