如何将 C# 单元测试作为一个独立的控制台程序? (没有外部运行器或控制台)

How to make c# unit test as a standalone console program? (without external runner or console)

我要:

  1. 制作独立的单元测试控制台程序。
    在控制台中直接 运行。 没有外部测试运行ner.
  2. 测试入口已控制

为了证明我的意思,以 C++ gtest 为例:

::testing::InitGoogleTest(&argc, argv); 
return RUN_ALL_TESTS();

使用 NUnit:

return new NUnitLite.AutoRun().Execute(args);

https://docs.nunit.org/articles/nunit/running-tests/NUnitLite-Runner.html
琐碎但难google.
我需要“内置”精确匹配才能到达该文档页面。