ColorFactoryTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  Drench.Tests ColorFactoryTests

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

public class ColorFactoryTests

The ColorFactoryTests type exposes the following members.

Constructors

  NameDescription
Public methodColorFactoryTests
Initializes a new instance of the ColorFactoryTests class
Top
Methods

  NameDescription
Public methodRandomColorIsRounded
Top
Examples

[Test]
public void RandomColorIsRounded()
{
    Randomizer.Use(new FixedRandom(new[] { 0.1f, 0.2f, 0.3f }));
    Color color = new ColorFactory().Generate(0.5f, 0.1f);
    Assert.AreEqual(new Color(0.5f, 0.6f, 0.6f), color);
}
See Also