public void CtorShouldSetProperties() { var testData = new byte[1]; var evtArgs = new ContextNotificationEventArgs("Hi!", testData); Assert.Equal("Hi!", evtArgs.Message); Assert.Equal(testData, evtArgs.PrivateData); }
private static void CtxOnNotification(object sender, ContextNotificationEventArgs e) { var ctx = (Context)sender; System.Console.WriteLine($"ERROR: {ctx.Id} - {e.Message}"); }