Updated generated files

(cherry picked from commit 709ac8b5642c543c7b70c0423adac000b488f316)
This commit is contained in:
sven-n
2026-07-26 09:42:54 +02:00
committed by Acentech Dev
parent 0aedeb9ce8
commit cb810e8b0c
8 changed files with 457 additions and 217 deletions

View File

@@ -3903,4 +3903,18 @@ public class PacketStructureTests
Assert.That(actualLength, Is.EqualTo(expectedLength),
"Packet length mismatch: declared length does not match calculated size");
}
/// <summary>
/// Tests the packet size calculation for ChatCommandListRequest.
/// </summary>
[Test]
public void ChatCommandListRequest_PacketSizeValidation()
{
// Fixed-length packet validation
const int expectedLength = 4;
var actualLength = ChatCommandListRequestRef.Length;
Assert.That(actualLength, Is.EqualTo(expectedLength),
"Packet length mismatch: declared length does not match calculated size");
}
}

View File

@@ -6413,4 +6413,42 @@ public class PacketStructureTests
Assert.That(4 + 1, Is.LessThanOrEqualTo(expectedLength),
"Field 'Event' exceeds packet boundary");
}
/// <summary>
/// Tests the packet size calculation for ChatCommandInfo.
/// </summary>
[Test]
public void ChatCommandInfo_PacketSizeValidation()
{
// Basic packet validation
// Validate header type and field boundaries
// Field 'Index' starts at index 5 with size 1
Assert.That(5, Is.GreaterThanOrEqualTo(0),
"Field 'Index' has invalid negative index");
// Field 'Count' starts at index 6 with size 1
Assert.That(6, Is.GreaterThanOrEqualTo(0),
"Field 'Count' has invalid negative index");
// Field 'MinimumCharacterStatus' starts at index 7 with size 1
Assert.That(7, Is.GreaterThanOrEqualTo(0),
"Field 'MinimumCharacterStatus' has invalid negative index");
// Field 'ParameterCount' starts at index 8 with size 1
Assert.That(8, Is.GreaterThanOrEqualTo(0),
"Field 'ParameterCount' has invalid negative index");
// Field 'Command' starts at index 9 with size 32
Assert.That(9, Is.GreaterThanOrEqualTo(0),
"Field 'Command' has invalid negative index");
// Field 'Name' starts at index 41 with size 48
Assert.That(41, Is.GreaterThanOrEqualTo(0),
"Field 'Name' has invalid negative index");
// Field 'Description' starts at index 89 with size 256
Assert.That(89, Is.GreaterThanOrEqualTo(0),
"Field 'Description' has invalid negative index");
}
}