ThemeTests LoadTheme Method Delta Engine Documentation

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

public void LoadTheme()
Examples

[Test, CloseAfterFirstFrame]
public void LoadTheme()
{
    Theme theme = CreateSampleTheme();
    var loadedData = new ThemeLoader().LoadValidData(dataStream);
    AssertLoadedThemeData(theme, loadedData);
}
[Test, CloseAfterFirstFrame]
public void LoadThemeFromFile()
{
    Theme theme = CreateSampleTheme();
    var loadedData = new Theme();
    loadedData.LoadFromFile(dataStream);
    AssertLoadedThemeData(theme, loadedData);
}
See Also