Test what you ship: MSTest and Native AOT
MSTest source generation lets test projects use the same Native AOT and trimming deployment model as the applications they validate, while reducing reflection on the test execution path.
Dev Blogs