ColorTests CreateFromString 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 CreateFromString()
Examples

[Test]
public void CreateFromString()
{
    var color = new Color("R=1,G=2,B=3,A=4");
    Assert.AreEqual(1, color.R);
    Assert.AreEqual(2, color.G);
    Assert.AreEqual(3, color.B);
    Assert.AreEqual(4, color.A);
}
See Also