comparison UnitTests/CS/ComponenetModel/ObjectBinderTest.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 using System;
2 using System.ComponentModel;
3
4 using BLToolkit.ComponentModel;
5
6 using NUnit.Framework;
7
8 namespace UnitTests.CS.ComponenetModel
9 {
10 [TestFixture]
11 public class ObjectBinderTest
12 {
13 [Test]
14 public void GetItemPropertiesTest()
15 {
16 ObjectBinder binder = new ObjectBinder();
17
18 binder.ListChanged += delegate(object sender, ListChangedEventArgs e)
19 {
20 PropertyDescriptorCollection properties = ((ITypedList)sender).GetItemProperties(null);
21
22 Assert.That(properties, Is.Not.Null);
23 Assert.That(properties, Is.Not.Empty);
24 };
25
26 binder.ItemType = typeof(string);
27 }
28 }
29 }