public void Dither_ErrorDiffuser_CorrectProcessorWithColors() { this.operations.Dither(this.errorDiffuser, this.testPalette); PaletteDitherProcessor p = this.Verify <PaletteDitherProcessor>(); Assert.Equal(this.errorDiffuser, p.Dither); Assert.Equal(this.testPalette, p.Palette); }
public void Dither_index_rect_CorrectProcessor() { this.operations.Dither(this.orderedDither, this.testPalette, this.rect); PaletteDitherProcessor p = this.Verify <PaletteDitherProcessor>(this.rect); Assert.Equal(this.orderedDither, p.Dither); Assert.Equal(this.testPalette, p.Palette); }
public void Dither_ErrorDiffuser_rect_CorrectProcessor() { this.operations.Dither(this.errorDiffuser, this.rect); PaletteDitherProcessor p = this.Verify <PaletteDitherProcessor>(this.rect); Assert.Equal(this.errorDiffuser, p.Dither); Assert.Equal(Color.WebSafePalette, p.Palette); }
public void Dither_CorrectProcessor() { this.operations.Dither(this.orderedDither); PaletteDitherProcessor p = this.Verify <PaletteDitherProcessor>(); Assert.Equal(this.orderedDither, p.Dither); Assert.Equal(Color.WebSafePalette, p.Palette); }