title: How to write unit test for Program and Startup cs file for ASP.NET Core Web API app
body: <p>Is there any ways to write unit test for <code>Program</code> cs file for ASP.NET Core Web API and similarly for <code>startup</code> class, just to show more code coverage for the entire app? It's shows 0% coverage for now.</p>
  <p><a href="https://i.stack.imgur.com/CR6aK.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CR6aK.jpg" alt="enter image description here" /></a></p>