RangeTests ResultOfToStringCanConvertBackVector2D Method Delta Engine Documentation

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

public void ResultOfToStringCanConvertBackVector2D()
Examples

[Test]
public void ResultOfToStringCanConvertBackVector2D()
{
    var rangeVector2D = new Range<Vector2D>(Vector2D.One, Vector2D.ScreenRight);
    var converted2D = rangeVector2D.ToString();
    var rangeRetrieved2D = new Range<Vector2D>(converted2D);
    Assert.AreEqual("({1, 1},{1, 0})", converted2D);
    Assert.AreEqual(rangeVector2D.Start, rangeRetrieved2D.Start);
    Assert.AreEqual(rangeVector2D.End, rangeRetrieved2D.End);
}
See Also