コード例 #1
0
        public void DsfBaseConvert_UpdateForEachOutputs_WhenContainsMatchingStar_UpdateSuccessful()
        {
            //------------Setup for test--------------------------
            List <BaseConvertTO> fieldsCollection = new List <BaseConvertTO>
            {
                new BaseConvertTO("[[rs(*).val]]", "text", "hex", "abc", 1)
            };


            var dsfBaseConvert = new DsfBaseConvertActivity {
                ConvertCollection = fieldsCollection
            };

            //------------Execute Test---------------------------
            dsfBaseConvert.UpdateForEachOutputs(new List <Tuple <string, string> >
            {
                new Tuple <string, string>("[[rs(*).val]]", "[[rs(1).val]]"),
            }, null);

            //------------Assert Results-------------------------

            var collection = dsfBaseConvert.ConvertCollection;

            Assert.AreEqual("[[rs(1).val]]", collection[0].ToExpression);
        }