public void RelayedEventArgs_Test1() { using (var verify = new Verify()) { try { var e = RelayedEventArgs.Create(new object(), (EventArgs)null); verify.Fail("Expected an ArgumentNullException"); } catch (ArgumentNullException ex) { verify.AreEqual("eventArgs", ex.ParamName, "Parameter name is wrong"); } } }
void OnItemPropertyChanged(object sender, PropertyChangedEventArgs e) { m_ItemPropertyChangedEvent?.Invoke(this, RelayedEventArgs.Create(sender, e)); }