AyCode.Core/AyCode.Core.Tests
Loretta 3adad03f15 Refactor string serialization, CLI args, and test data
- Refactored string serialization for performance: ASCII-optimistic encode, single pass, and minimal shifting; extracted string interning logic to TryWriteInternedString for both runtime and SGen paths.
- Updated AcBinarySerializer buffer writes to use BufferAt helper, removing redundant bounds checks.
- Enhanced CLI argument parsing to support multiple args and charset selection; unknown args now emit warnings.
- Switched all test data generation from Hungarian to English.
- Benchmark report now includes .NET runtime version.
- Cached MinStringInternLength in AcBinaryDeserializer for performance.
- Minor BinaryTypeCode flag refactor and doc improvements.
- Added BINARY_ISSUES.md entry for FastWire string interning/ref handling desync bug.
2026-05-21 21:03:03 +02:00
..
Compression Document AcBinary wire format, sync docs, update conventions 2026-03-29 09:11:57 +02:00
GeneratedWriters Remove depth param from serializers; use context field 2026-05-13 23:02:15 +02:00
Serialization Fix SGen ref-handling asymmetry; add regression tests 2026-05-19 08:32:39 +02:00
TestModels Refactor string serialization, CLI args, and test data 2026-05-21 21:03:03 +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 [LOADED_DOCS: 2 files, no new loads] 2026-05-13 08:40:42 +02: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