MetaDataCreatorTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Content.Disk.Tests MetaDataCreatorTests

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 class MetaDataCreatorTests

The MetaDataCreatorTests type exposes the following members.

Constructors

  NameDescription
Public methodMetaDataCreatorTests
Initializes a new instance of the MetaDataCreatorTests class
Top
Methods

  NameDescription
Public methodDisposeContentLoader
Public methodIfNamesAreJustNumbersDoNotCreateSequence
Public methodTryCreatingAnimationFromFiles
Top
Examples

[Test, Ignore]
public void TryCreatingAnimationFromFiles()
{
    File.Delete(Path.Combine("Content", "ContentMetaData.xml"));
    ContentLoader.Use<DiskContentLoader>();
    Assert.IsTrue(ContentLoader.Exists("ImageAnimation", ContentType.ImageAnimation));
}
[Test]
public void IfNamesAreJustNumbersDoNotCreateSequence()
{
    ContentDiskTestsExtensions.CreateImage(Path.Combine("Content", "1.png"), Size.One);
    ContentDiskTestsExtensions.CreateImage(Path.Combine("Content", "2.png"), Size.One);
    ContentDiskTestsExtensions.CreateImage(Path.Combine("Content", "3.png"), Size.One);
    Assert.DoesNotThrow(ContentLoader.Use<DiskContentLoader>);
}
See Also