public void BuildPropertyToStringAfterModifyingValue() { BuildProperty property = new BuildProperty("n", "v"); property.Value = "new"; Assertion.AssertEquals("new", property.ToString()); }
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"); }
public void BuildPropertyToStringWithEmptyStringValue() { BuildProperty property = new BuildProperty("n", String.Empty); Assertion.AssertEquals(String.Empty, property.ToString()); }
public void BuildPropertyToStringWithSimpleStringValue() { BuildProperty property = new BuildProperty("n", "v"); Assertion.AssertEquals("v", property.ToString()); }
public void TestToString() { bp = new BuildProperty("name", "a;b"); Assert.AreEqual("a;b", bp.ToString()); }