Dev2.Core.Tests.ViewModelTests.QuickVariableInputModelTests.QuickVariableInput_Using_Case_Convert_Add_List_To_Collection_Overwrite_True_Expected_5 C# (CSharp) Method

QuickVariableInput_Using_Case_Convert_Add_List_To_Collection_Overwrite_True_Expected_5() private method

        public void QuickVariableInput_Using_Case_Convert_Add_List_To_Collection_Overwrite_True_Expected_5()
        {
            DsfCaseConvertActivity activity = new DsfCaseConvertActivity();
            activity.ConvertCollection.Add(new CaseConvertTO("[[result1]]", "UPPER", "[[result1]]", 1));
            activity.ConvertCollection.Add(new CaseConvertTO("[[result2]]", "UPPER", "[[result2]]", 2));
            activity.ConvertCollection.Add(new CaseConvertTO("[[result3]]", "UPPER", "[[result3]]", 3));
            QuickVariableInputModel model = new QuickVariableInputModel(TestModelItemFactory.CreateModelItem(activity), activity);
            IList<string> listToAdd = new List<string>();
            listToAdd.Add("[[Add1]]");
            listToAdd.Add("[[Add2]]");

            model.AddListToCollection(listToAdd, true);

            int colCount = model.GetCollectionCount();

            Assert.AreEqual(2, colCount);
        }