public void ScaleTest() { List <Point> points = new List <Point>(); var triangle = new Triangle( new Point(0, 0), new Point(1, 0), new Point(0, 1)); points.Add(new Point(0, 0)); points.Add(new Point(1, 0)); points.Add(new Point(0, 1)); triangle.Scale(10); for (int i = 0; i < triangle.Points.Count; i++) { points[i].X *= 10; points[i].Y *= 10; Assert.AreEqual(points[i].X, triangle.Points[i].X); Assert.AreEqual(points[i].Y, triangle.Points[i].Y); } }