FruitBankHybridApp/FruitBankHybrid.Shared.Tests/README.md

1.5 KiB

FruitBankHybrid.Shared.Tests

MSTest integration and serialization tests. Covers SignalR client operations, JSON reference handling, binary serialization, Toon format, and bunit component rendering.

Folder Structure

Folder Purpose
TestData/ Test models for Toon serialization

Key Files

  • MSTestSettings.cs — Parallel test execution at MethodLevel.
  • FruitBankClientTests.cs — (~667 lines) Full SignalR integration: Partner, Shipping, ShippingItem, ShippingDocument, Customer, Product, Order, Login tests. Localhost-only safety check.
  • OrderClientTests.cs — Order and StockTaking retrieval/manipulation tests.
  • JsonExtensionTests.cs — (~715 lines) JSON $id/$ref reference handling, 5-level hierarchies, circular references, DeepPopulateWithMerge.
  • StockTakingSerializerTests.cs — Binary serialization round-trips, null collection handling, binary format analysis.
  • ToonTests.cs — (~465 lines) Toon format: metadata generation, reference markers, type uniqueness, navigation metadata, property descriptions.
  • SandboxEndpointSimpleTests.cs — Endpoint connectivity and SignalR negotiate tests.
  • GridPartnerBaseTests.cs — Grid component tests (disabled).
  • GridPartnerRazorTests.cs — bunit Blazor rendering tests (disabled).

LLM Maintenance: If you modify code in this folder, update this README to reflect the changes. If you notice the README content does not match the current code, automatically update the README to match the code.