public void SetPropertyValueTest() { BuildFile bf = TestData.BuildFile; bf.SetPropertyValue("OutputDir", "TestSetOutputDir"); Assert.AreEqual(@"TestSetOutputDir", bf.GetPropertyValue("OutputDir")); Assert.AreEqual(false, bf.SetPropertyValue("nonexistantproperty", "TestSetOutputDir")); }
private void SetProperties(BuildFile bf) { foreach (DataGridViewRow row in dtProperties.Rows) { bf.SetPropertyValue(row.Cells["dtColName"].Value.ToString(), row.Cells["dtColValue"].Value.ToString()); } }
private void SetProperties(BuildFile bf) { string[] propSetters = cla["prop"].Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries); foreach (string propSetter in propSetters) { bf.SetPropertyValue(propSetter.Split(new char[] { '=' })[0], propSetter.Split(new char[] { '=' })[1]); } }