public void Columns_WhenChanged_SubscribesToCollectionChanged()
        {
            var classUnderTest = new DynamicGridViewBehavior();
            var mock = Mock.Create<ColumnCollection>();
            classUnderTest.Attach(new RadGridView());
            

            Mock.ArrangeSet(() => mock.CollectionChanged += null).IgnoreArguments().OccursOnce();

            //Act
            classUnderTest.Columns = mock;

            //Assert
            Mock.AssertAll(mock);
        }        
 public void PropertiesTest()
 {
     var behavior = new DynamicGridViewBehavior();
     behavior.Attach(new RadGridView());
     TestsHelper.TestPublicPropertiesGetSet(behavior);
 }
        public void Columns_WhenAddedToInnerCollection_AddsToColumns()
        {
            var classUnderTest = new DynamicGridViewBehavior();
            var columns = new ColumnCollection();
            classUnderTest.Attach(new RadGridView());

            classUnderTest.Columns = columns;

            //Act 
            columns.Add(new ColumnItem(columns));

            //Assert
            Assert.IsTrue(classUnderTest.Columns.Count == 1);

        }