예제 #1
0
        public IDTSOutputColumn100 NewAt(int lIndex)
        {
            IDTSOutputColumn100 outputColumn = new OutputColumnTestImpl();

            outputColumns.Insert(lIndex, outputColumn);

            return(outputColumn);
        }
예제 #2
0
        public IDTSOutputColumn100 New()
        {
            IDTSOutputColumn100 outputColumn = new OutputColumnTestImpl();

            outputColumns.Add(outputColumn);

            return(outputColumn);
        }
예제 #3
0
        public void GetTooltipStringTestOutputColumn()
        {
            IDTSOutputColumn100 ic = new OutputColumnTestImpl();

            ic.Name = "name";
            string expected = "Name: name\nData type: DT_NULL\nLength: 0\nScale: 0\nPrecision: 0\nCode page: 0";
            string actual   = DataFlowComponentUI.GetTooltipString(ic);

            Assert.AreEqual(expected, actual);
        }
예제 #4
0
        public void SetOutputColumnDataTypeTest()
        {
            MultipleHash.HashTypeEnumerator propertyValue = new MultipleHash.HashTypeEnumerator();
            propertyValue = MultipleHash.HashTypeEnumerator.MD5;
            IDTSOutputColumn100 outputColumn = new OutputColumnTestImpl();

            Utility.SetOutputColumnDataType(propertyValue, outputColumn);
            Assert.AreEqual(outputColumn.CodePage, 0);
            Assert.AreEqual(outputColumn.DataType, Microsoft.SqlServer.Dts.Runtime.Wrapper.DataType.DT_BYTES);
            Assert.AreEqual(outputColumn.Length, 16);
            Assert.AreEqual(outputColumn.Precision, 0);
            Assert.AreEqual(outputColumn.Scale, 0);
        }