public void TagTest() { IDTSExternalMetadataColumn100 ic = new ExternalMetadataColumnTestImpl(); DataFlowElement target = new DataFlowElement("Name Me Please", ic); object actual; actual = target.Tag; Assert.IsNotNull(actual); Assert.AreEqual(ic.Name, (actual as IDTSExternalMetadataColumn100).Name); }
public void GetTooltipStringTestExternalMetaColumn() { IDTSExternalMetadataColumn100 ic = new ExternalMetadataColumnTestImpl(); 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 ToolTipTest() { IDTSExternalMetadataColumn100 ic = new ExternalMetadataColumnTestImpl(); ic.Name = "name"; string expected = "Name: name\nData type: DT_NULL\nLength: 0\nScale: 0\nPrecision: 0\nCode page: 0"; DataFlowElement target = new DataFlowElement("New Name", ic); // TODO: Initialize to an appropriate value string actual; actual = target.ToolTip; Assert.AreEqual(expected, actual); }
public void DataFlowElementConstructorTest2Value() { string name = "name"; // TODO: Initialize to an appropriate value IDTSExternalMetadataColumn100 ic = new ExternalMetadataColumnTestImpl(); ic.Name = "name"; string expected = "Name: name\nData type: DT_NULL\nLength: 0\nScale: 0\nPrecision: 0\nCode page: 0"; DataFlowElement target = new DataFlowElement(name, ic); Assert.AreEqual(name, target.Name); Assert.AreEqual(ic, target.Tag); Assert.AreEqual(expected, target.ToolTip); }