Introduce diagnostic and test infrastructure for SignalR binary protocol serialization/deserialization, including: - ProtocolRoundTripDiagnosticTest for isolated protocol byte inspection - TestMultiSegmentProtocol to exercise multi-segment buffer parsing - TestInvocationBinder for correct parameter type binding - Updates to TestableSignalRClient2 and TestableSignalRHub2 to route all messages through protocol round-trip - Enhanced SendMessageToClient to simulate real SignalR transport - Clarified SequenceBinaryInput segment handling logic - Made TryParseMessage virtual in AcBinaryHubProtocol for testability These changes improve test coverage for cross-boundary and multi-segment scenarios in SignalR message handling. |
||
|---|---|---|
| .. | ||
| LoginServices | ||
| SignalRs | ||
| AyCode.Services.Server.Tests.csproj | ||
| InvokeMethodExtensionTests.cs | ||
| README.md | ||
| TestLogger.cs | ||
README.md
AyCode.Services.Server.Tests
@project { type = "test" }
Comprehensive server-side tests for SignalR communication, DataSource operations, login services, and reflection-based method invocation.
Folder Structure
| Folder | Purpose |
|---|---|
SignalRs/ |
Full SignalR client→hub→service test infrastructure |
LoginServices/ |
Login service test base classes |
Key Files (Root)
TestLogger.cs— Re-exports TestLogger from AyCode.Core.Tests.InvokeMethodExtensionTests.cs— Tests MethodInfo.InvokeMethod: sync, async Task unwrapping, Task.FromResult (production bug fix), non-generic Task, complex objects.