public void SetUp() { _descriptor = new NuGenControlImageDescriptor(); _eventSink = new DescriptorEventSink(_descriptor); _sampleBmp = new Bitmap(1, 1); _sampleImageList = new ImageList(); _sampleImageList.Images.Add(_sampleBmp); }
public DescriptorEventSink(NuGenControlImageDescriptor descriptor) { Assert.IsNotNull(descriptor); descriptor.ImageChanged += delegate { _imageChangedCount.Inc(); }; descriptor.ImageIndexChanged += delegate { _imageIndexChangedCount.Inc(); }; descriptor.ImageListChanged += delegate { _imageListChangedCount.Inc(); }; }