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

ForeachActivityDesignerUtils_LimitDragDropOptions_WorkflowItemTypeNameFormat_Switch_DropPrevented() private method

        public void ForeachActivityDesignerUtils_LimitDragDropOptions_WorkflowItemTypeNameFormat_Switch_DropPrevented()
        {
            //------------Setup for test--------------------------
            var activityDesignerUtils = new DropEnabledActivityDesignerUtils();
            var dataObject = new Mock<IDataObject>();
            dataObject.Setup(o => o.GetFormats()).Returns(new[] { "WorkflowItemTypeNameFormat" });
            dataObject.Setup(o => o.GetData(It.IsAny<string>())).Returns("Switch");
            //------------Execute Test---------------------------
            var dropEnabled = activityDesignerUtils.LimitDragDropOptions(dataObject.Object);
            //------------Assert Results-------------------------
            Assert.IsFalse(dropEnabled);
        }
        [TestMethod]
ForEachDesignerUtilsTests