public void ToPenTest() { Pen pen = new Pen(Color.FromArgb(255, 0, 0, 0)); PaintPen paintPen = new PaintPen(pen); Pen actualPen = paintPen.ToPen(); Assert.AreSame(pen, actualPen); }
public void ConstructorPaintColorTest() { PaintColor paintColor = new PaintColor(40, 20, 30, 35); PaintPen paintPen = new PaintPen(paintColor); Pen actualPen = paintPen.ToPen(); Assert.AreEqual(paintColor.A, actualPen.Color.A); Assert.AreEqual(paintColor.R, actualPen.Color.R); Assert.AreEqual(paintColor.G, actualPen.Color.G); Assert.AreEqual(paintColor.B, actualPen.Color.B); }