DiskContentLoaderTests CreateMetaDataViaFileCreator Method Delta Engine Documentation

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

public void CreateMetaDataViaFileCreator()
Examples

[Test]
public void CreateMetaDataViaFileCreator()
{
    Directory.CreateDirectory(ExtraContentDirectoryName);
    foreach (var filePath in Directory.GetFiles(ContentProjectDirectoryName, "*.png"))
        File.Copy(filePath, Path.Combine(ExtraContentDirectoryName, Path.GetFileName(filePath)));
    string metaDataFilePath = Path.Combine(ExtraContentDirectoryName, "ContentMetaData.xml");
    var xml = CreateMetaDataXmlFileAndCheckPixelSizes(null, metaDataFilePath);
    CreateMetaDataXmlFileAndCheckPixelSizes(xml, metaDataFilePath);
}
See Also