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

ForeachActivityDesignerUtils_LimitDragDropOptions_ModelItemFormat_NotSwitchDecision_DropNotPrevented() private method

        public void ForeachActivityDesignerUtils_LimitDragDropOptions_ModelItemFormat_NotSwitchDecision_DropNotPrevented()
        {
            //------------Setup for test--------------------------
            var activityDesignerUtils = new DropEnabledActivityDesignerUtils();
            var dataObject = new Mock<IDataObject>();
            dataObject.Setup(o => o.GetFormats()).Returns(new[] { "ModelItemFormat" });
            var modelItem = ModelItemUtils.CreateModelItem(new DsfMultiAssignActivity());
            dataObject.Setup(o => o.GetData(It.IsAny<string>())).Returns(modelItem);
            //------------Execute Test---------------------------
            var dropEnabled = activityDesignerUtils.LimitDragDropOptions(dataObject.Object);
            //------------Assert Results-------------------------
            Assert.IsTrue(dropEnabled);
        }
ForEachDesignerUtilsTests