コード例 #1
0
        public void SetGetProperties()
        {
            DirectDynamicValue value = new DirectDynamicValue();

            value.ParameterName = "test parameter";
            Assert.AreEqual("test parameter", value.ParameterName, "ParameterName not being get/set correctly");
            value.PropertyName = "test property";
            Assert.AreEqual("test property", value.PropertyName, "PropertyName not being get/set correctly");
        }
コード例 #2
0
        public void ApplyTo()
        {
            MsBuildTask                 testTask   = new MsBuildTask();
            DirectDynamicValue          value      = new DirectDynamicValue("newDir", "workingDirectory");
            Dictionary <string, string> parameters = new Dictionary <string, string>();

            parameters.Add("newDir", "a location");
            value.ApplyTo(testTask, parameters, null);
            Assert.AreEqual("a location", testTask.WorkingDirectory, "Value has not been correctly set");
        }