AyCode.Core/AyCode.Core.Tests
Loretta 910b0deab8 [LOADED_DOCS: 2 files, no new loads]
Separate raw and framed streaming in AcBinarySerializer

Refactored AcBinarySerializer and AsyncPipeWriterOutput to support both raw (headerless) and multiplexed/framed ([201][UINT16][data]) streaming wire formats, controlled by a new flag and explicit APIs. Updated AsyncPipeReaderInput and AcBinaryDeserializer to match, with new constructor options and documentation. Expanded tests for both modes and added runtime type detection for flush strategy safety. Minor refactoring and doc improvements throughout.
2026-04-29 16:09:33 +02:00
..
Compression Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
GeneratedWriters Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
Serialization [LOADED_DOCS: 2 files, no new loads] 2026-04-29 16:09:33 +02:00
TestModels Refactor BenchmarkTestDataProvider for flexibility & clarity 2026-04-07 14:27:12 +02:00
AyCode.Core.Tests.csproj Update dependencies and expand README documentation 2026-03-20 16:42:51 +01:00
GlobalUsings.cs database improvements... 2023-11-23 22:38:13 +01:00
JsonExtensionTests.cs Update enum values, PropertySkip code, and add int tests 2026-01-05 09:44:02 +01:00
README.md Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
TestModelBase.cs refactoring, improvements, fixes, etc... 2024-05-01 17:07:48 +02:00

README.md

AyCode.Core.Tests

MSTest unit tests for AyCode.Core serialization, compression, and utilities. Covers binary/JSON round-trips, reference handling, nullable types, source generator integration, and performance benchmarks.

Folder Structure

Folder Purpose
Serialization/ Binary and JSON serialization tests (20+ test classes)
Compression/ GZip compression tests
TestModels/ Shared test entities, enums, data factories, SignalR infrastructure
GeneratedWriters/ Hand-written source generator output examples

Key Files (Root)

  • GlobalUsings.cs — Global MSTest using.
  • TestModelBase.cs — Abstract base for test models with configuration support.
  • JsonExtensionTests.cs — JSON extension method tests.

Dependencies

Dependency Purpose
MSTest Test framework
MessagePack Serialization comparison
MemoryPack Serialization comparison
MongoDB.Bson BSON comparison