XmlMetaDataExtensions ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Content.Xml XmlMetaDataExtensions

Namespace: DeltaEngine.Content.Xml
Assembly: DeltaEngine.Content.Xml (in DeltaEngine.Content.Xml.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public static class XmlMetaDataExtensions

The XmlMetaDataExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAddMetaDataEntry
Public methodStatic memberCreateProjectMetaData
Top
Remarks

Tests: DeltaEngine.Content.Xml.Tests.XmlMetaDataExtensionsTests
Examples

4 unit tests call DeltaEngine.Content.Xml.XmlMetaDataExtensions
[Test]
public void CreateProjectMetaData()
{
    AssertMinimumContentMetaData(projectMetaData, ProjectName, "Scene", DateTime.Now);
    Assert.AreEqual(Platform, projectMetaData.GetAttributeValue("ContentDeviceName"));
}
[Test]
public void ConvertMinimumContentMetaDataToXml()
{
    ContentMetaData testMetaData = GetMinimumTestContentMetaData();
    Assert.IsEmpty(projectMetaData.Children);
    projectMetaData.AddMetaDataEntry(testMetaData);
    Assert.AreEqual(1, projectMetaData.Children.Count);
    AssertMinimumContentMetaData(projectMetaData.Children[0], testMetaData.Name,
        testMetaData.Type.ToString(), testMetaData.LastTimeUpdated);
}
[Test]
public void ConvertBasicContentMetaDataToXml()
{
    ContentMetaData testMetaData = GetBasicTestContentMetaData();
    Assert.IsEmpty(projectMetaData.Children);
    projectMetaData.AddMetaDataEntry(testMetaData);
    Assert.AreEqual(1, projectMetaData.Children.Count);
    AssertFullContentMetaDataEntry(projectMetaData.Children[0], testMetaData);
}
See Also