InteractiveButtonTests LoadWithoutBinaryDataExtensions 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 LoadWithoutBinaryDataExtensions()
Examples

[Test, CloseAfterFirstFrame, Ignore]
public void LoadWithoutBinaryDataExtensions()
{
    var stream = BinaryDataExtensions.SaveToMemoryStream(button);
    button.Text = "Original";
    var loadedButton = new InteractiveButton();
    loadedButton.LoadFromStream(stream);
    Assert.AreEqual(Center, loadedButton.DrawArea);
    Assert.AreEqual("Click Me", loadedButton.Text);
    loadedButton.DrawArea = loadedButton.DrawArea.Move(new Vector2D(0.0f, 0.2f));
}
See Also