コード例 #1
0
 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");
         }
     }
 }
コード例 #2
0
 void OnItemPropertyChanged(object sender, PropertyChangedEventArgs e)
 {
     m_ItemPropertyChangedEvent?.Invoke(this, RelayedEventArgs.Create(sender, e));
 }