public void AddCustomPropertyTest1()
        {
            IDTSCustomPropertyCollection100 customPropertyCollection = new CustomPropertyCollectionTestImpl();

            PropertiesManager_Accessor.AddCustomProperty(customPropertyCollection, "Name", "Description", "Value");

            Assert.AreEqual <string>("Value", (string)PropertiesManager.GetPropertyValue(customPropertyCollection, "Name"));
            Assert.AreEqual(null, PropertiesManager.GetPropertyValue(customPropertyCollection, "Unexpected"));
        }
        public void AddCustomPropertyTest()
        {
            IDTSCustomPropertyCollection100 customPropertyCollection = new CustomPropertyCollectionTestImpl();

            PropertiesManager_Accessor.AddCustomProperty(customPropertyCollection, "NewName", "Test description", 100.25, "TestConverter");
            IDTSCustomProperty100 prop = customPropertyCollection["NewName"];

            Assert.AreEqual <string>("Test description", prop.Description);
            Assert.AreEqual <string>("TestConverter", prop.TypeConverter);
            Assert.AreEqual(100.25, prop.Value);
        }
        public void PostErrorTest()
        {
            PropertiesManager_Accessor target = new PropertiesManager_Accessor();

            target.PostError("Message");
        }
        public void ValidateRowDelimiterPropertyTest()
        {
            PropertiesManager_Accessor target = new PropertiesManager_Accessor();

            Assert.AreEqual <DTSValidationStatus>(DTSValidationStatus.VS_ISVALID, target.ValidateRowDelimiterProperty(PropertiesManager.RowDelimiterPropName, "\r\n"));
        }
        public void ValidateBooleanPropertyTest()
        {
            PropertiesManager_Accessor target = new PropertiesManager_Accessor();

            Assert.AreEqual <DTSValidationStatus>(DTSValidationStatus.VS_ISCORRUPT, target.ValidateBooleanProperty(PropertiesManager.IsUnicodePropName, "blah"));
        }
        public void ValidateDelimiterPropertyTest()
        {
            PropertiesManager_Accessor target = new PropertiesManager_Accessor(); // TODO: Initialize to an appropriate value

            Assert.AreEqual <DTSValidationStatus>(DTSValidationStatus.VS_ISVALID, target.ValidateDelimiterProperty(PropertiesManager.ColumnDelimiterPropName, ","));
        }
 public void PostErrorTest()
 {
     PropertiesManager_Accessor target = new PropertiesManager_Accessor();
     target.PostError("Message");
 }
 public void ValidateBooleanPropertyTest()
 {
     PropertiesManager_Accessor target = new PropertiesManager_Accessor(); 
     Assert.AreEqual<DTSValidationStatus>(DTSValidationStatus.VS_ISCORRUPT, target.ValidateBooleanProperty(PropertiesManager.IsUnicodePropName, "blah"));
 }
 public void ValidateRowDelimiterPropertyTest()
 {
     PropertiesManager_Accessor target = new PropertiesManager_Accessor();
     Assert.AreEqual<DTSValidationStatus>(DTSValidationStatus.VS_ISVALID, target.ValidateRowDelimiterProperty(PropertiesManager.RowDelimiterPropName, "\r\n"));
 }
 public void ValidateDelimiterPropertyTest()
 {
     PropertiesManager_Accessor target = new PropertiesManager_Accessor(); // TODO: Initialize to an appropriate value
     Assert.AreEqual<DTSValidationStatus>(DTSValidationStatus.VS_ISVALID, target.ValidateDelimiterProperty(PropertiesManager.ColumnDelimiterPropName, ","));
 }