first unit test

This commit is contained in:
2019-10-25 03:16:17 -06:00
parent 6901925c69
commit 93b22ef2ec
21 changed files with 275 additions and 254 deletions

View File

@@ -6,13 +6,14 @@ namespace Shapes
{
public class Image : Rectangle
{
public Bitmap Picture { get; private set; }
public Image(Point point1, Point point2, Point point3, Point point4, Stream stream) : base(point1, point2, point3, point4)
public Image(Point point1, Point point2, Point point3, Point point4, Stream stream) : base(point1, point2,
point3, point4)
{
Picture = GetImage(stream);
}
public Image(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, Stream stream) : base(x1, y1, x2, y2, x3, y3, x4, y4)
public Image(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4,
Stream stream) : base(x1, y1, x2, y2, x3, y3, x4, y4)
{
Picture = GetImage(stream);
}
@@ -21,5 +22,7 @@ namespace Shapes
{
Picture = GetImage(stream);
}
public Bitmap Picture { get; }
}
}