TextBoxTests ChangingFontTextChangesChild 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 ChangingFontTextChangesChild()
Examples

[Test]
public void ChangingFontTextChangesChild()
{
    var text = new FontText(Font.Default, "Hello", Rectangle.HalfCentered);
    topTextBox.Set(text);
    Assert.AreEqual(text, topTextBox.children[0].Entity2D);
}
See Also