Пример #1
0
 public void ToBindingList_throws_when_given_null_ObservableCollection()
 {
     Assert.Equal(
         "source",
         Assert.Throws <ArgumentNullException>(() => ObservableCollectionExtensions.ToBindingList <FakeEntity>(null)).ParamName);
 }
Пример #2
0
 public static BindingList <T> ToBindingList <T>(this IList <T> list) where T : class
 {
     return(ObservableCollectionExtensions.ToBindingList((ObservableCollection <T>)list));
 }