MatrixTests LoadFromString 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 LoadFromString()
Examples

[Test]
public void LoadFromString()
{
    const string MatrixString = "0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15";
    var loadedMatrix = new Matrix(MatrixString);
    for (int i = 0; i < 16; i++)
        Assert.AreEqual(i, loadedMatrix.GetValues[i]);
}
See Also