public void ObservableItemSourceGetItem() { tlog.Debug(tag, $"ObservableItemSourceGetItem START"); var para = new TestModel(); var cView = new CollectionView(para); var testingTarget = new ObservableItemSource(cView.ItemsSource, cView); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <ObservableItemSource>(testingTarget, "should be an instance of testing target class!"); Assert.IsNotNull(testingTarget.GetItem(0), "should not be null."); testingTarget.Dispose(); tlog.Debug(tag, $"ObservableItemSourceGetItem END (OK)"); }
public void ObservableItemSourceIsFooter() { tlog.Debug(tag, $"ObservableItemSourceIsFooter START"); var para = new TestModel(); var cView = new CollectionView(para); var testingTarget = new ObservableItemSource(cView.ItemsSource, cView); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <ObservableItemSource>(testingTarget, "should be an instance of testing target class!"); testingTarget.HasFooter = true; Assert.IsFalse(testingTarget.IsFooter(18), "should be false."); testingTarget.Dispose(); tlog.Debug(tag, $"ObservableItemSourceIsFooter END (OK)"); }