feat: add suitelink client runtime and test harness
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Text;
|
||||
using SuiteLink.Client.Protocol;
|
||||
using SuiteLink.Client.Tests.Fixtures;
|
||||
|
||||
namespace SuiteLink.Client.Tests.Protocol;
|
||||
|
||||
@@ -8,16 +9,7 @@ public sealed class SuiteLinkUpdateCodecTests
|
||||
[Fact]
|
||||
public void DecodeUpdate_DecodesBinaryValue()
|
||||
{
|
||||
byte[] frame =
|
||||
[
|
||||
0x0D, 0x00, 0x09, 0x00,
|
||||
0x34, 0x12, 0x00, 0x00,
|
||||
0x0A, 0x00,
|
||||
0xC0, 0x00,
|
||||
0x01,
|
||||
0x01,
|
||||
0xA5
|
||||
];
|
||||
var frame = FixtureBytes.Read("update-binary-tag-1234-true.bin");
|
||||
Assert.Equal(0x09, frame[2]);
|
||||
Assert.Equal(0x00, frame[3]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user