Esempio n. 1
0
        public void BuildPropertyToStringAfterModifyingValue()
        {
            BuildProperty property = new BuildProperty("n", "v");

            property.Value = "new";
            Assertion.AssertEquals("new", property.ToString());
        }
Esempio n. 2
0
        public void TestCtor1()
        {
            string name  = "name";
            string value = "value";

            bp = new BuildProperty(name, value);

            Assert.AreEqual(name, bp.Name, "A1");
            Assert.AreEqual(value, bp.Value, "A2");
            Assert.AreEqual(String.Empty, bp.Condition, "A3");
            Assert.AreEqual(value, bp.FinalValue, "A4");
            Assert.AreEqual(false, bp.IsImported, "A5");
            Assert.AreEqual(value, bp.ToString(), "A6");

            name  = "name";
            value = "$(AnotherProperty)";

            bp = new BuildProperty(name, value);

            Assert.AreEqual(name, bp.Name, "A7");
            Assert.AreEqual(value, bp.Value, "A8");
            Assert.AreEqual(String.Empty, bp.Condition, "A9");
            Assert.AreEqual(value, bp.FinalValue, "A10");
            Assert.AreEqual(false, bp.IsImported, "A11");
            Assert.AreEqual(value, bp.ToString(), "A12");
        }
Esempio n. 3
0
        public void BuildPropertyToStringWithEmptyStringValue()
        {
            BuildProperty property = new BuildProperty("n", String.Empty);

            Assertion.AssertEquals(String.Empty, property.ToString());
        }
Esempio n. 4
0
        public void BuildPropertyToStringWithSimpleStringValue()
        {
            BuildProperty property = new BuildProperty("n", "v");

            Assertion.AssertEquals("v", property.ToString());
        }
Esempio n. 5
0
 public void TestToString()
 {
     bp = new BuildProperty("name", "a;b");
     Assert.AreEqual("a;b", bp.ToString());
 }