ButtonTests LoadFromFile 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 LoadFromFile()
Examples

[Test, CloseAfterFirstFrame]
public void LoadFromFile()
{
    var loadedScene = ContentLoader.Load<Scene>("SceneWithAButton");
    var newScene = new Scene();
    newScene.LoadFromFile(BinaryDataExtensions.SaveToMemoryStream(loadedScene));
    CheckSceneWithAButton(newScene);
}
See Also