FakeContentLoaderTests ThrowExceptionIfSecondContentLoaderInstanceIsUsed Method Delta Engine Documentation

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

public void ThrowExceptionIfSecondContentLoaderInstanceIsUsed()
Examples

[Test]
public void ThrowExceptionIfSecondContentLoaderInstanceIsUsed()
{
    ContentLoader.Exists("abc");
    Assert.Throws<ContentLoader.ContentLoaderAlreadyExistsItIsOnlyAllowedToSetBeforeTheAppStarts>(
        ContentLoader.Use<FakeContentLoader>);
}
See Also