12 writes to Update
Microsoft.Build.Engine.OM.UnitTests (12)
Construction\ConstructionEditing_Tests.cs (3)
742
itemUpdate.
Update
= "i";
1148
firstUpdateItem.
Update
= "a";
1149
secondUpdateItem.
Update
= "a";
Construction\ProjectItemElement_Tests.cs (6)
761
item.
Update
= "i1";
854
item.
Update
= "i1";
869
item.
Update
= "ib";
884
item.
Update
= String.Empty;
899
item.
Update
= null;
1033
item.
Update
= "i2";
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (3)
654
Assert.ThrowsAny<InvalidOperationException>(() => item.View.
Update
= "xx"); // Include/Update/Remove are exclusive
658
Assert.ThrowsAny<InvalidOperationException>(() => item.View.
Update
= "xx"); // Include/Update/Remove are exclusive
660
item.VerifySetter("newUpdate", (i) => i.Update, (i, v) => i.
Update
= v);
14 references to Update
Microsoft.Build (6)
Construction\ProjectItemElement.cs (4)
105
ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Remove.Length == 0 &&
Update
.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update);
128
ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) ||
Update
.Length == 0, "OM_EitherAttributeButNotBoth", ElementName, XMakeAttributes.exclude, XMakeAttributes.update);
149
ErrorUtilities.VerifyThrowInvalidOperation(String.IsNullOrEmpty(value) || (Include.Length == 0 &&
Update
.Length == 0), "OM_OneOfAttributeButNotMore", ElementName, XMakeAttributes.include, XMakeAttributes.remove, XMakeAttributes.update);
475
ErrorUtilities.VerifyThrowInvalidOperation(parent.Parent is ProjectTargetElement || (Include.Length > 0 ||
Update
.Length > 0 || Remove.Length > 0), "OM_ItemsOutsideTargetMustHaveIncludeOrUpdateOrRemove");
Definition\Project.cs (1)
2808
SingleItemSpecProvenance(itemElement.
Update
, itemElement.UpdateLocation, Operation.Update) ?? SingleItemSpecProvenance(itemElement.Remove, itemElement.RemoveLocation, Operation.Remove) :
Evaluation\LazyItemEvaluator.cs (1)
537
ProcessItemSpec(rootDirectory, itemElement.
Update
, itemElement.UpdateLocation, operationBuilder);
Microsoft.Build.Engine.OM.UnitTests (8)
Construction\ProjectItemElement_Tests.cs (5)
612
Assert.Equal("i", item.
Update
);
871
Assert.Equal("ib", item.
Update
);
886
Assert.Equal(String.Empty, item.
Update
);
901
Assert.Equal(String.Empty, item.
Update
);
1035
Assert.Equal("i2", item.
Update
);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
897
Assert.Equal(realXml.
Update
, viewXml.
Update
);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
660
item.VerifySetter("newUpdate", (i) => i.
Update
, (i, v) => i.Update = v);