XmlMetaDataExtensionsTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Content.Xml.Tests XmlMetaDataExtensionsTests

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

public class XmlMetaDataExtensionsTests

The XmlMetaDataExtensionsTests type exposes the following members.

Constructors

  NameDescription
Public methodXmlMetaDataExtensionsTests
Initializes a new instance of the XmlMetaDataExtensionsTests class
Top
Methods

  NameDescription
Public methodConvertBasicContentMetaDataToXml
Public methodConvertFullContentMetaDataToXml
Public methodConvertMinimumContentMetaDataToXml
Public methodCreateProjectMetaData
Public methodInitializeProjectMetaData
Top
Examples

[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);
}
[Test]
public void ConvertFullContentMetaDataToXml()
{
    ContentMetaData testMetaData = GetBasicTestContentMetaData();
    testMetaData.Language = "English";
    testMetaData.PlatformFileId = 3;
    testMetaData.Values.Add("CoolValue", "SuperCool");
    testMetaData.Values.Add("AnotherCoolValue", "SuperDuperCool");
    projectMetaData.AddMetaDataEntry(testMetaData);
    AssertFullContentMetaDataEntry(projectMetaData.Children[0], testMetaData);
}
See Also