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

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

            bp.Clone(false);
        }