static void Main(string[] args) { // Proper Test2.Run() call Test2.Run().Wait(); // Run() waits for the GetStringAsync() inside itself Test1.Run(); TestForTest().Wait(); // Wrong call. Outer method doesn't finish as expected }
public static async Task TestForTest() { await Test2.Run(); }