title: How does unit test project test main()
body: <p>I have a simple .net core console project in VS2019 as follows.</p>
  <pre><code>public class Program
  { 
     public static int Sum(int x, int y) 
     { 
        return x + y; 
     } 
     public static void Main(string[] args) 
     { 
        Func&lt;int, int, int&gt; sum = Sum; 
        Console.WriteLine(sum(10, 10)); 
     } 
  }
  </code></pre>
  <p>My question is how to create a unit test project to test main().</p>