Dev2.Core.Tests.Activities.ForEachDesignerUtilsTests.ForeachActivityDesignerUtils_LimitDragDropOptions_ModelItemsFormat_WithSwitchAndCount_DropPrevented C# (CSharp) Method

ForeachActivityDesignerUtils_LimitDragDropOptions_ModelItemsFormat_WithSwitchAndCount_DropPrevented() private method

        public void ForeachActivityDesignerUtils_LimitDragDropOptions_ModelItemsFormat_WithSwitchAndCount_DropPrevented()
        {
            //------------Setup for test--------------------------
            var activityDesignerUtils = new DropEnabledActivityDesignerUtils();
            var dataObject = new Mock<IDataObject>();
            dataObject.Setup(o => o.GetFormats()).Returns(new[] { "ModelItemsFormat" });
            var modelItemList = new List<ModelItem> { ModelItemUtils.CreateModelItem(new DsfCountRecordsetActivity()), ModelItemUtils.CreateModelItem(new FlowSwitch<string>()) };
            dataObject.Setup(o => o.GetData(It.IsAny<string>())).Returns(modelItemList);
            //------------Execute Test---------------------------
            var dropEnabled = activityDesignerUtils.LimitDragDropOptions(dataObject.Object);
            //------------Assert Results-------------------------
            Assert.IsFalse(dropEnabled);
        }
ForEachDesignerUtilsTests