I've been creating test for net6.0 and my currently issue is with the Program.cs or Startup.cs files.
Since I need 80%+ test coverage on each of my projects, a couple of them are stuck with less than that because the Program.cs file is not covered, but I also don't know how exactly to unit test it.
Since there is no business rules inside of the Program.cs because it is mostly app configurations,there is the option to include the [ExcludeFromCodeCoverage] attribute, but I don't think that's appropriate. (Is it?)
So, regarding this issue, what is the best solution?
Does anyone know any good material that explains this?
EDIT: The files contain mostly service configuration and other relevant configurations for the application during startup.