28 references to Metadata
Microsoft.Build (1)
Evaluation\Evaluator.cs (1)
1356foreach (ProjectMetadataElement metadataElement in itemDefinitionElement.Metadata)
Microsoft.Build.Engine.OM.UnitTests (25)
Construction\ProjectItemDefinitionElement_Tests.cs (5)
39Assert.Equal(0, Helpers.Count(itemDefinition.Metadata)); 64Assert.Equal(1, Helpers.Count(definition.Metadata)); 65Assert.Equal("m1", Helpers.GetFirst(definition.Metadata).Name); 66Assert.Equal("v1", Helpers.GetFirst(definition.Metadata).Value); 112var metadata = Helpers.MakeList(itemDefinition.Metadata);
Construction\ProjectMetadataElement_Tests.cs (14)
459Assert.Single(itemDefinitions[0].Metadata); 461var metadata = itemDefinitions[0].Metadata.First(); 518Assert.Single(itemDefinitions[0].Metadata); 520var metadata = itemDefinitions[0].Metadata.First(); 613Assert.Single(itemDefinitions[0].Metadata); 615var metadata = itemDefinitions[0].Metadata.First(); 730Assert.Single(itemDefinitions[0].Metadata); 732var metadata = itemDefinitions[0].Metadata.First(); 879Assert.Single(itemDefinitions[0].Metadata); 881var metadata = itemDefinitions[0].Metadata.First(); 991Assert.Single(itemDefinitions[0].Metadata); 993var metadata = itemDefinitions[0].Metadata.First(); 1103Assert.Empty(itemDefinitions[0].Metadata); 1221Assert.Empty(itemDefinitions[0].Metadata);
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
869ViewValidation.Verify(viewXml.Metadata, realXml.Metadata, ViewValidation.Verify, context);
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (4)
614Assert.Empty(itemDef.View.Metadata); 617Assert.Equal(2, itemDef.View.Metadata.Count); 619Assert.Equal(4, itemDef.View.Metadata.Count); 622Assert.Equal(6, itemDef.View.Metadata.Count);
Microsoft.Build.Engine.UnitTests (2)
Evaluation\Evaluator_Tests.cs (2)
1532ProjectMetadataElement xml1 = project.Xml.ItemDefinitions.ElementAt(0).Metadata.ElementAt(0); 1592ProjectMetadataElement xml1 = project.Xml.ItemDefinitions.ElementAt(0).Metadata.ElementAt(0);