FloodFillerTests SettingColorWhenAllColorsAreTheSameChangesThemAll Method Delta Engine Documentation

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

public void SettingColorWhenAllColorsAreTheSameChangesThemAll()
Examples

[Test]
public void SettingColorWhenAllColorsAreTheSameChangesThemAll()
{
    floodFiller.SetColor(1, 1, Color.Red);
    for (int x = 0; x < Width; x++)
        for (int y = 0; y < Height; y++)
            Assert.AreEqual(Color.Red, colors[x, y]);
    Assert.AreEqual(16, floodFiller.ProcessedCount);
}
See Also