DiskContentLoaderTests LoadImageContent 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 LoadImageContent()
Examples

[Test]
public void LoadImageContent()
{
    Assert.AreEqual("DeltaEngineLogo", image.Name);
    Assert.IsFalse(image.IsDisposed);
    Assert.AreEqual(new Size(128, 128), image.PixelSize);
    var smallImage = ContentLoader.Load<MockImage>("SmallImage");
    Assert.AreEqual(new Size(32, 32), smallImage.PixelSize);
}
See Also