Пример #1
0
        public void BinaryDither_index_rect_CorrectProcessor()
        {
            this.operations.BinaryDither(this.orderedDither, Color.Yellow, Color.HotPink, this.rect);
            BinaryOrderedDitherProcessor p = this.Verify <BinaryOrderedDitherProcessor>(this.rect);

            Assert.Equal(this.orderedDither, p.Dither);
            Assert.Equal(Color.HotPink, p.LowerColor);
        }
Пример #2
0
        public void BinaryDither_index_rect_CorrectProcessor()
        {
            this.operations.BinaryDither(this.orderedDither, NamedColors <Rgba32> .Yellow, NamedColors <Rgba32> .HotPink, this.rect);
            BinaryOrderedDitherProcessor <Rgba32> p = this.Verify <BinaryOrderedDitherProcessor <Rgba32> >(this.rect);

            Assert.Equal(this.orderedDither, p.Dither);
            Assert.Equal(NamedColors <Rgba32> .HotPink, p.LowerColor);
        }
Пример #3
0
        public void BinaryDither_rect_CorrectProcessor()
        {
            this.operations.BinaryDither(this.orderedDither, this.rect);
            BinaryOrderedDitherProcessor p = this.Verify <BinaryOrderedDitherProcessor>(this.rect);

            Assert.Equal(this.orderedDither, p.Dither);
            Assert.Equal(Color.White, p.UpperColor);
            Assert.Equal(Color.Black, p.LowerColor);
        }
Пример #4
0
        public void BinaryDither_CorrectProcessor()
        {
            this.operations.BinaryDither(this.orderedDither);
            BinaryOrderedDitherProcessor <Rgba32> p = this.Verify <BinaryOrderedDitherProcessor <Rgba32> >();

            Assert.Equal(this.orderedDither, p.Dither);
            Assert.Equal(NamedColors <Rgba32> .White, p.UpperColor);
            Assert.Equal(NamedColors <Rgba32> .Black, p.LowerColor);
        }