public void TestBoundCopyWithAdd() { var boundCopy = bindableStringList.GetBoundCopy(); bool boundCopyItemAdded = false; boundCopy.ItemsAdded += item => boundCopyItemAdded = true; bindableStringList.Add("test"); Assert.IsTrue(boundCopyItemAdded); }
public void TestBoundCopyWithAdd() { var boundCopy = bindableStringList.GetBoundCopy(); bool boundCopyItemAdded = false; boundCopy.ItemsAdded += item => boundCopyItemAdded = true; bindableStringList.Add("test"); Assert.IsTrue(boundCopyItemAdded); }