Пример #1
0
        public void MetaDataTest()
        {
            OutputColumn             columnToProcess = null;                                                                              // TODO: Initialize to an appropriate value
            PipelineBuffer           buffer          = null;                                                                              // TODO: Initialize to an appropriate value
            IDTSComponentMetaData100 metaData        = new ComponentMetaDataTestImpl();                                                   // TODO: Initialize to an appropriate value
            ManualResetEvent         threadReset     = null;                                                                              // TODO: Initialize to an appropriate value
            PassThreadState          target          = new PassThreadState(columnToProcess, buffer, metaData, threadReset, false, false); // TODO: Initialize to an appropriate value
            IDTSComponentMetaData100 expected        = new ComponentMetaDataTestImpl();                                                   // TODO: Initialize to an appropriate value
            IDTSComponentMetaData100 actual;

            target.MetaData = expected;
            actual          = target.MetaData;
            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void PassThreadStateConstructorTest()
        {
            OutputColumn             columnToProcess = new OutputColumn();
            PipelineBuffer           buffer          = null; // TODO: Initialize to an appropriate value
            IDTSComponentMetaData100 metaData        = new ComponentMetaDataTestImpl();
            ManualResetEvent         threadReset     = new ManualResetEvent(true);
            PassThreadState          target          = new PassThreadState(columnToProcess, buffer, metaData, threadReset, true, false);

            Assert.IsNotNull(target);
            Assert.AreEqual(columnToProcess, target.ColumnToProcess);
            Assert.AreEqual(metaData, target.MetaData);
            Assert.AreEqual(threadReset, target.ThreadReset);
            Assert.AreEqual(true, target.SafeNullHandling);
            Assert.AreEqual(false, target.MillisecondHandling);
        }