예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }