Today's problem: I use an "AcceptanceTest" helper which I can just point at a non-public class and say "run the tests you find on this". This isn't really a thing you can do in AOT.

I'm not really sure what the equivalent is, except maybe pushing all those private types into a secondary pre-compiled test assembly that's only ever invoked for these acceptance tests (where the code can be public and get code-gen'd).

I'm hoping a background brain thread can come up with something better. Ugh.

Welp, background thread hasn't yielded a better solution yet, and time's up (inasmuch as such things could be said for lazy retired people working on open source projects).

Spot check!

Also, the tests run in 0.021s, which is 5x faster than using the JIT. 🎉

#DotNet #UnitTest #NativeAOT

Not a supported scenario yet...have to think about what's involved here. Maybe just "trusting" that you give me a .exe and it's xUnit.net v3 instead of trying to verify it with Mono.Cecil?