public void ShouldNotAllowToDragInputAndOutputItems(Type typeOfElement) { // Given var element = typeOfElement.GetConstructor(Type.EmptyTypes).Invoke(null); var dragHandler = new ProcessingChainDragHandler(); var dragInfo = new TestDragInfo { SourceItems = new[] { element } }; // When dragHandler.StartDrag(dragInfo); // Then Assert.IsNull(dragInfo.Data); }
public void ShouldAllowToDragImageProcessingElements() { // Given var element = new TwoPointNonUniformityCorrectionTemplate(); var dragHandler = new ProcessingChainDragHandler(); var dragInfo = new TestDragInfo { SourceItems = new[] { element } }; // When dragHandler.StartDrag(dragInfo); // Then Assert.IsNotNull(dragInfo.Data); }