Skip to content

Commit

Permalink
Add Test for Robe Esprite
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-dmxc committed Nov 26, 2024
1 parent f443e89 commit cca8520
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 1 deletion.
85 changes: 85 additions & 0 deletions ArtNetTests/Binary Tests/Robe/Robe_Esprite_3_9.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
using ArtNetSharp;

namespace ArtNetTests.Binary_Tests.Astera
{
internal class Robe_Esprite_3_9 : AbstractArtPollReplyBinaryTestSubject
{
private static readonly byte[] DATA = [
0x41, 0x72, 0x74, 0x2d, 0x4e, 0x65, 0x74, 0x00,
0x00, 0x21, 0x02, 0xf7, 0xfe, 0xa4, 0x36, 0x19,
0x03, 0x09, 0x00, 0x00, 0x01, 0xf0, 0x00, 0x02,
0x52, 0x53, 0x45, 0x73, 0x70, 0x72, 0x69, 0x74,
0x65, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x45, 0x73, 0x70, 0x72,
0x69, 0x74, 0x65, 0x20, 0x20, 0x44, 0x4d, 0x58,
0x3a, 0x20, 0x30, 0x30, 0x31, 0x20, 0x20, 0x55,
0x6e, 0x69, 0x76, 0x65, 0x72, 0x73, 0x65, 0x3a,
0x20, 0x30, 0x30, 0x30, 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, 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, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x0d, 0x19, 0x06, 0xfe, 0xa4, 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, 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, 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, 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 ];

private static readonly PortTestSubject[] PORTS =
[
new PortTestSubject(EPortType.OutputFromArtNet,(Address)0,(Address)0)
];
public Robe_Esprite_3_9() : base(
"Robe Esprite (FW 3.9)",
DATA,
0,
"Esprite",
"Esprite DMX: 001 Universe: 000",
new MACAddress("00:0d:19:06:fe:a4"),
new IPv4Address("2.247.254.164"),
new IPv4Address("0.0.0.0"),
0x01f0,
0x5352,
EStCodes.StNode,
PORTS,
false,
majorVersion: 3,
minorVersion: 9) // Trailing 0x00s
{
}
}
}
4 changes: 3 additions & 1 deletion ArtNetTests/Binary Tests/Robe/Robe_Tetra2_3_5.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ public Robe_Tetra2_3_5() : base(
0x5352,
EStCodes.StNode,
PORTS,
false) // Trailing 0x00s
false,
majorVersion: 3,
minorVersion: 5) // Trailing 0x00s
{
}
}
Expand Down

0 comments on commit cca8520

Please sign in to comment.