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

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

            bp.Clone(false);
        }