Inheritance Hierarchy
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
The XmlMetaDataExtensionsTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
XmlMetaDataExtensionsTests | Initializes a new instance of the XmlMetaDataExtensionsTests class |
Methods
Name | Description | |
---|---|---|
ConvertBasicContentMetaDataToXml | ||
ConvertFullContentMetaDataToXml | ||
ConvertMinimumContentMetaDataToXml | ||
CreateProjectMetaData | ||
InitializeProjectMetaData |
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