public IDTSOutputColumn100 NewAt(int lIndex) { IDTSOutputColumn100 outputColumn = new OutputColumnTestImpl(); outputColumns.Insert(lIndex, outputColumn); return(outputColumn); }
public IDTSOutputColumn100 New() { IDTSOutputColumn100 outputColumn = new OutputColumnTestImpl(); outputColumns.Add(outputColumn); return(outputColumn); }
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); }
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); }