using System; using ClassNotify.Client.Services; namespace VisualReceiptFailSilentTest; class Program { [STAThread] static int Main(string[] args) { try { var res = SimpleVisualReceipt.Capture(null!); if (res == null) { Console.WriteLine("SUCCESS: Returned null safely without throwing"); return 0; } Console.WriteLine("FAILED: Expected null but got non-null"); return 1; } catch (Exception ex) { Console.WriteLine($"FAILED: Threw exception {ex.GetType().Name}: {ex.Message}"); return 2; } } }