public void CloneShallowOfImportedProject() { Project p = GetProjectWithProperties(); BuildProperty property = GetSpecificBuildPropertyFromProject(p, null, "outdir"); BuildProperty clone = property.Clone(false); Assertion.AssertEquals(property.Name, clone.Name); Assertion.AssertEquals(property.Value, clone.Value); }
public void CloneDeep() { BuildProperty property = new BuildProperty("n", "v"); BuildProperty clone = property.Clone(true); Assertion.AssertEquals(property.Name, clone.Name); Assertion.AssertEquals(property.Value, clone.Value); property.Value = "new"; clone.Value = "other"; Assertion.AssertEquals("other", clone.Value); Assertion.AssertEquals("new", property.Value); Assertion.AssertEquals("n", property.Name); Assertion.AssertEquals("n", clone.Name); }
public void CloneShallow_Invalid() { BuildProperty property = new BuildProperty("n", "v"); BuildProperty clone = property.Clone(false); }
public void TestClone2() { bp = new BuildProperty("name", "value"); bp.Clone(true); }
public void TestClone1() { bp = new BuildProperty("name", "value"); bp.Clone(false); }