9 writes to Name
Microsoft.Build.Engine.OM.UnitTests (9)
Construction\ConstructionEditing_Tests.cs (2)
3162
attributeMetadata.
Name
= "A2";
3163
elementMetadata.
Name
= "B2";
Construction\ProjectMetadataElement_Tests.cs (5)
222
metadatum.
Name
= "m2";
236
metadatum.
Name
= "m";
251
metadatum.
Name
= "ImportGroup";
263
metadatum.
Name
= "Include";
272
metadatum.
Name
= "Include";
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (1)
355
metadata.VerifySetter("NewName", (md) => md.Name, (md, v) => md.
Name
= v);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectMetadataElementLink.cs (1)
29
public void ChangeName(string newName) { MetadataXml.
Name
= newName; }
59 references to Name
Microsoft.Build (12)
Construction\ProjectMetadataElement.cs (2)
70
ValidateValidMetadataAsAttributeName(
Name
, Parent?.ElementName ?? "null", Parent?.Location);
174
return owner.CreateMetadataElement(
Name
);
Definition\ProjectItem.cs (1)
538
ProjectMetadata predecessor = GetMetadata(metadataElement.
Name
);
Definition\ProjectMetadata.cs (1)
92
{ return _xml.
Name
; }
Evaluation\Evaluator.cs (2)
507
metadataElement.
Name
,
1362
M predecessor = itemDefinition.GetMetadata(metadataElement.
Name
);
Evaluation\EvaluatorMetadataTable.cs (1)
102
_metadata[xml.
Name
] = new EvaluatorMetadata(xml, evaluatedValueEscaped);
Evaluation\ProjectParser.cs (1)
409
ProjectErrorUtilities.VerifyThrowInvalidProject(!containsItemVector, element.Location, "MetadataDefinitionCannotContainItemVectorExpression", metadatum.Value, metadatum.
Name
);
Instance\ProjectItemDefinitionInstance.cs (2)
201
ProjectMetadataInstance metadatum = new ProjectMetadataInstance(xml.
Name
, evaluatedValue);
202
_metadata[xml.
Name
] = metadatum;
Instance\ProjectItemInstance.cs (2)
459
return SetMetadata(metadataElement.
Name
, evaluatedInclude);
2063
IEnumerable<ProjectMetadataInstance> projectMetadataInstances = metadataList.Select(metadatum => new ProjectMetadataInstance(metadatum.Key.
Name
, metadatum.Value));
Microsoft.Build.Engine.OM.UnitTests (47)
Construction\ProjectItemDefinitionElement_Tests.cs (4)
65
Assert.Equal("m1", Helpers.GetFirst(definition.Metadata).
Name
);
115
Assert.Equal("m1", metadata[0].
Name
);
117
Assert.Equal("m2", metadata[1].
Name
);
120
Assert.Equal("m1", metadata[2].
Name
);
Construction\ProjectItemElement_Tests.cs (5)
368
Assert.Equal("m1", metadata1[0].
Name
);
376
Assert.Equal("m2", metadata2[0].
Name
);
417
Assert.Equal("m1", metadata[0].
Name
);
419
Assert.Equal("m2", metadata[1].
Name
);
422
Assert.Equal("m1", metadata[2].
Name
);
Construction\ProjectMetadataElement_Tests.cs (21)
38
Assert.Equal("m", metadatum.
Name
);
223
Assert.Equal("m2", metadatum.
Name
);
237
Assert.Equal("m", metadatum.
Name
);
437
Assert.Equal("m1", metadata.
Name
);
462
Assert.Equal("m1", metadata.
Name
);
496
Assert.Equal("m1", metadata.
Name
);
521
Assert.Equal("m1", metadata.
Name
);
573
Assert.Equal("m1", metadata.
Name
);
616
Assert.Equal("m1", metadata.
Name
);
690
Assert.Equal("m1", metadata.
Name
);
733
Assert.Equal("m1", metadata.
Name
);
819
Assert.Equal("m1", metadata.
Name
);
882
Assert.Equal("m1", metadata.
Name
);
951
Assert.Equal("m1", metadata.
Name
);
994
Assert.Equal("m1", metadata.
Name
);
1067
Assert.Equal("m1", metadata.
Name
);
1107
Assert.Equal("m1", metadata.
Name
);
1178
Assert.Equal("m1", metadata.
Name
);
1185
Assert.Equal("m2", metadata.
Name
);
1225
Assert.Equal("m1", metadata.
Name
);
1232
Assert.Equal("m2", metadata.
Name
);
Definition\ProjectItem_Tests.cs (4)
2194
Assert.Equal("M", metadataElement.
Name
);
2250
Assert.Equal("M1", me1.
Name
);
2254
Assert.Equal("M2", me2.
Name
);
2306
Assert.Equal("M1", me1.
Name
);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
628
Assert.Equal(realXml.
Name
, viewXml.
Name
);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (11)
85
ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata1.View.Metadata.Where((md) => md.
Name
== k).FirstOrDefault().Value);
352
var metadata = item1.AddNewChaildWithVerify<ProjectMetadataElement>(ObjectType.View, "metadata", (p, n) => p.AddMetadata(n, "value"), (md, n) => md.
Name
== n);
355
metadata.VerifySetter("NewName", (md) => md.
Name
, (md, v) => md.Name = v);
616
itemDef.Add2NewChildrenWithVerify<ProjectMetadataElement>("mshort", (id, n) => id.AddMetadata(n, $"value{n}"), (md, n) => md.
Name
== n, out var mdShort1, out var mdShort2);
618
itemDef.Add2NewChildrenWithVerify<ProjectMetadataElement>("mlong", (id, n) => id.AddMetadata(n, $"value{n}", false), (md, n) => md.
Name
== n, out var mdLong1, out var mdLong2);
621
itemDef.Add2NewChildrenWithVerify<ProjectMetadataElement>("mlongAttrib", (id, n) => id.AddMetadata(n, $"value{n}", true), (md, n) => md.
Name
== n, out var mdAttrib1, out var mdAttrib2);
672
item.Add2NewChildrenWithVerify<ProjectMetadataElement>("mshort", (id, n) => id.AddMetadata(n, $"value{n}"), (md, n) => md.
Name
== n, out var mdShort1, out var mdShort2);
674
item.Add2NewChildrenWithVerify<ProjectMetadataElement>("mlong", (id, n) => id.AddMetadata(n, $"value{n}", false), (md, n) => md.
Name
== n, out var mdLong1, out var mdLong2);
676
item.Add2NewChildrenWithVerify<ProjectMetadataElement>("mlongAttrib", (id, n) => id.AddMetadata(n, $"value{n}", true), (md, n) => md.
Name
== n, out var mdAttrib1, out var mdAttrib2);
707
ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata1.View.Metadata.Where((md) => md.
Name
== k).FirstOrDefault().Value);
708
ViewValidation.VerifyMetadata(itemMetadata, (k) => itemWithMetadata2.View.Metadata.Where((md) => md.
Name
== k).FirstOrDefault().Value);