Ejemplo n.º 1
0
        public void ShouldInitializeProperties()
        {
            PropertyItem oldValue = new PropertyItemTestCase();
            PropertyItem newValue = new PropertyItemTestCase();

            PropertyValueChangedEventArgs args = new PropertyValueChangedEventArgs(PropertyGrid.PropertyValueChangedEvent, newValue, oldValue);

            Assert.AreEqual <RoutedEvent>(PropertyGrid.PropertyValueChangedEvent, args.RoutedEvent);
            Assert.AreEqual <PropertyItem>(newValue, args.Property);
            Assert.AreEqual <PropertyItem>(oldValue, args.OldValue as PropertyItem);
        }
        public void ShouldInitializeProperties()
        {
            PropertyItem oldValue = new PropertyItemTestCase();
              PropertyItem newValue = new PropertyItemTestCase();

              PropertyValueChangedEventArgs args = new PropertyValueChangedEventArgs(PropertyGrid.PropertyValueChangedEvent, newValue, oldValue);

              Assert.AreEqual<RoutedEvent>(PropertyGrid.PropertyValueChangedEvent, args.RoutedEvent);
              Assert.AreEqual<PropertyItem>(newValue, args.Property);
              Assert.AreEqual<PropertyItem>(oldValue, args.OldValue as PropertyItem);
        }