private void LastEventAssert(NotifySetChangeActionType type, object newItem = null, object oldItem = null) { Assert.AreEqual(_lastEventArgs.newItem, newItem); Assert.AreEqual(_lastEventArgs.oldItem, oldItem); Assert.AreEqual(_lastEventArgs.changeActionTypeType, type); }
private NotifySetChangedEventArgs(NotifySetChangeActionType changeActionTypeType, T oldItem, T newItem) { this.oldItem = oldItem; this.newItem = newItem; this.changeActionTypeType = changeActionTypeType; }