MockContentLoaderTests ThrowExceptionIfContentNameDoesNotMatchToContentType Method Delta Engine Documentation

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

public void ThrowExceptionIfContentNameDoesNotMatchToContentType()
Examples

[Test]
public void ThrowExceptionIfContentNameDoesNotMatchToContentType()
{
    Assert.Throws<ContentLoader.CachedResourceExistsButIsOfTheWrongType>(
        () => ContentLoader.Load<MockImage>(TestXmlContentName));
}
See Also