Skip to content

[C#] Test-suite parity with mem-rs: every implementation, property tests, coverage, persistence example #111

Backlog

Description

@konard

Problem

The C# library has one test (HeapResizableDirectMemoryTests), and the C++ library has one, which uses the broken copy constructor. mem-rs has unit tests per backend, doctested README examples, quickcheck property tests, miri runs, coverage reporting, multi-OS CI and a doublets persistence example.

Proposed solution

  • xUnit tests for every class (ArrayMemory, FileArrayMemory, adapters, heap, file-mapped, temporary). Cover open, grow, shrink, reopen, dispose, error paths and every probe P1–P7 from the Plan to catch up with github.com/linksplatform/mem-rs #94 case study.
  • Property-based tests with FsCheck or CsCheck: random sequences of grow/shrink/write/reopen compared against a List<T> model, like mem-rs quickcheck.
  • Coverage with coverlet.collector (already referenced) and a report upload.
  • A persistence example under examples/: write, reopen, verify.
  • Update the test stack: Microsoft.NET.Test.Sdk 17.1.0 → current, xunit 2.4.1 → xunit v3 (or 2.9.x), coverlet 3.1.2 → current.

Part of #94 (catch up with mem-rs). Analysis and evidence: case study.

Activity

  1. added
    enhancement
    csharp
    mem-rs-parity
    tests
    on Nov 29, 2026
  2. added theissue type on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    csharpenhancementmem-rs-paritytests

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions