FontDataTests ToStringTest Method Delta Engine Documentation

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

public void ToStringTest()
Examples

[Test, CloseAfterFirstFrame]
public void ToStringTest()
{
    var fontDataType = typeof(FontDescription);
    var expected = fontDataType.Namespace + "." + fontDataType.Name +
        ", Font Family=Verdana, Font Size=12";
    var fontData = new FontDescription(ContentLoader.Load<Font>("Verdana12").Data);
    Assert.AreEqual(expected, fontData.ToString());
}
See Also