public void Dither_index_rect_CorrectProcessor() { this.operations.Dither(this.orderedDither, this.TestPalette, this.rect); OrderedDitherPaletteProcessor <Rgba32> p = this.Verify <OrderedDitherPaletteProcessor <Rgba32> >(this.rect); Assert.Equal(this.orderedDither, p.Dither); Assert.Equal(this.TestPalette, p.Palette); }
public void Dither_CorrectProcessor() { this.operations.Dither(this.orderedDither); OrderedDitherPaletteProcessor p = this.Verify <OrderedDitherPaletteProcessor>(); Assert.Equal(this.orderedDither, p.Dither); Assert.Equal(Color.WebSafePalette, p.Palette); }
public void Dither_rect_CorrectProcessor() { this.operations.Dither(this.orderedDither, this.rect); OrderedDitherPaletteProcessor <Rgba32> p = this.Verify <OrderedDitherPaletteProcessor <Rgba32> >(this.rect); Assert.Equal(this.orderedDither, p.Dither); Assert.Equal(NamedColors <Rgba32> .WebSafePalette, p.Palette); }
public void Dither_index_CorrectProcessor() { this.operations.Dither(this.orderedDither, this.testPalette); OrderedDitherPaletteProcessor p = this.Verify <OrderedDitherPaletteProcessor>(); Assert.Equal(this.orderedDither, p.Dither); Assert.Equal(this.testPalette, p.Palette); }