Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 public void CloneShallow_Invalid()
 {
     BuildProperty property = new BuildProperty("n", "v");
     BuildProperty clone    = property.Clone(false);
 }
Example #4
0
        public void TestClone2()
        {
            bp = new BuildProperty("name", "value");

            bp.Clone(true);
        }
Example #5
0
        public void TestClone1()
        {
            bp = new BuildProperty("name", "value");

            bp.Clone(false);
        }