Files
histsdk/tests
Joseph Doherty 7d5aeaeb06 Strengthen live event-read test: assert well-formed parsed events
ReadEventsAsync verified to return real, parsed events against the local 2020
server (e.g. User.Write with 18 properties) — the row parser (HistorianEventRowProtocol
v9) is wired and works. The prior test only asserted NotNull with a stale "row
format not yet decoded" comment.

- Renamed to ReadEventsAsync_AgainstLocalHistorian_ReturnsWellFormedEvents.
- Widened the window to 30 days (robust against a quiet recent window).
- Asserts NotEmpty + per-event well-formedness (non-empty Type, non-null
  Properties, EventTimeUtc within the queried window) — matching the ReadRawAsync
  test's NotEmpty style.
- Documents the known limitation: enumeration stops at the first benign
  `type=4 code=85` soft-terminal, so this verifies parsing correctness rather than
  exhaustive retrieval (draining all rows needs the code-85 decode, a capture task).

Passes live (1 event over 30 days). Non-live unit suite unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 15:12:41 -04:00
..