AyCode.Core/AyCode.Core.Tests
Loretta d4e4c4480a SGen null-handling parity, micro-opt CV, doc & bench fixes
- Fix SGen collection/dictionary null-handling: always emit PropertySkip for nulls, preventing NREs regardless of nullable annotation.
- Add micro-opt CV threshold (1.5%) to benchmark output for finer-grained result flagging; update reporting and context.
- Benchmark loop: add inter-sample settle delay, trimmed median, and branchless progress for more reliable measurements.
- Add regression tests for SGen null-handling (complex, collection, dictionary; null/non-null; SGen/reflection; FastMode/Default).
- Update docs: clarify SGen null-check contract, add AQN binder security plan, and cross-reference related issues.
- Misc: code cleanups, improved comments, and minor doc clarifications.
2026-05-24 07:39:21 +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 SGen null-handling parity, micro-opt CV, doc & bench fixes 2026-05-24 07:39:21 +02:00
TestModels SGen null-handling parity, micro-opt CV, doc & bench fixes 2026-05-24 07:39:21 +02:00
AyCode.Core.Tests.csproj Update dependencies and expand README documentation 2026-03-20 16:42:51 +01:00
GlobalUsings.cs
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

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