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

[Test]
public void LoadingCachedContentOfTheWrongTypeThrowsException()
{
    Assert.DoesNotThrow(() => ContentLoader.Load<MockImage>("DeltaEngineLogo"));
    Assert.Throws<ContentLoader.CachedResourceExistsButIsOfTheWrongType>(
        () => ContentLoader.Load<MockXmlContent>("DeltaEngineLogo"));
}
See Also