System Object DeltaEngine.Content.Xml XmlMetaDataExtensionsNamespace: DeltaEngine.Content.XmlAssembly: DeltaEngine.Content.Xml (in DeltaEngine.Content.Xml.dll) Version: 1.1.1.0 (1.1.1)
public static class XmlMetaDataExtensions
public static class XmlMetaDataExtensions
<ExtensionAttribute>
Public NotInheritable Class XmlMetaDataExtensions
<ExtensionAttribute>
Public NotInheritable Class XmlMetaDataExtensions
[ExtensionAttribute]
public ref class XmlMetaDataExtensions abstract sealed
[ExtensionAttribute]
public ref class XmlMetaDataExtensions abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type XmlMetaDataExtensions = class end
[<AbstractClassAttribute>]
[<SealedAttribute>]
type XmlMetaDataExtensions = class end
The XmlMetaDataExtensions type exposes the following members.
TopTests:
DeltaEngine.Content.Xml.Tests.XmlMetaDataExtensionsTests4 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 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 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 ConvertBasicContentMetaDataToXml()
{
ContentMetaData testMetaData = GetBasicTestContentMetaData();
Assert.IsEmpty(projectMetaData.Children);
projectMetaData.AddMetaDataEntry(testMetaData);
Assert.AreEqual(1, projectMetaData.Children.Count);
AssertFullContentMetaDataEntry(projectMetaData.Children[0], testMetaData);
}