소스 검색

Proving the Source can be derived from an IList<T>.

BDisp 1 년 전
부모
커밋
fc487cbbf8
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      UnitTests/Views/ListViewTests.cs

+ 2 - 2
UnitTests/Views/ListViewTests.cs

@@ -841,8 +841,8 @@ Item 6",
         var added = 0;
         var removed = 0;
         var otherActions = 0;
-        ObservableCollection<string> source1 = [];
-        var lv = new ListView { Source = new ListWrapper<string> (source1) };
+        IList<string> source1 = [];
+        var lv = new ListView { Source = new ListWrapper<string> (new ( source1)) };
 
         lv.CollectionChanged += (sender, args) =>
                                 {