mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-10 03:25:41 +00:00
Refer to points as vertices in unit tests
This commit is contained in:
parent
08d84ed6a2
commit
f02de2ad14
@ -9,7 +9,7 @@ namespace X10D.Tests.Drawing;
|
|||||||
public class PolygonFTests
|
public class PolygonFTests
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void AddPoints_ShouldAddPoints()
|
public void AddVertices_ShouldAddVertices()
|
||||||
{
|
{
|
||||||
var polygon = PolygonF.Empty;
|
var polygon = PolygonF.Empty;
|
||||||
polygon.AddVertices(new[] {new PointF(1, 2), new PointF(3, 4)});
|
polygon.AddVertices(new[] {new PointF(1, 2), new PointF(3, 4)});
|
||||||
@ -20,7 +20,7 @@ public class PolygonFTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void ClearPoints_ShouldClearPoints()
|
public void ClearVertices_ShouldClearVertices()
|
||||||
{
|
{
|
||||||
var polygon = PolygonF.Empty;
|
var polygon = PolygonF.Empty;
|
||||||
polygon.AddVertices(new[] {new Vector2(1, 2), new Vector2(3, 4)});
|
polygon.AddVertices(new[] {new Vector2(1, 2), new Vector2(3, 4)});
|
||||||
@ -34,7 +34,7 @@ public class PolygonFTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void Constructor_ShouldPopulatePoints_GivenPolygon()
|
public void Constructor_ShouldPopulateVertices_GivenPolygon()
|
||||||
{
|
{
|
||||||
var pointPolygon = new PolygonF(new[] {new PointF(1, 2), new PointF(3, 4)});
|
var pointPolygon = new PolygonF(new[] {new PointF(1, 2), new PointF(3, 4)});
|
||||||
var vectorPolygon = new PolygonF(new[] {new Vector2(1, 2), new Vector2(3, 4)});
|
var vectorPolygon = new PolygonF(new[] {new Vector2(1, 2), new Vector2(3, 4)});
|
||||||
@ -44,7 +44,7 @@ public class PolygonFTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void CopyConstructor_ShouldCopyPoints_GivenPolygon()
|
public void CopyConstructor_ShouldCopyVertices_GivenPolygon()
|
||||||
{
|
{
|
||||||
var first = PolygonF.Empty;
|
var first = PolygonF.Empty;
|
||||||
first.AddVertices(new[] {new PointF(1, 2), new PointF(3, 4)});
|
first.AddVertices(new[] {new PointF(1, 2), new PointF(3, 4)});
|
||||||
|
@ -8,7 +8,7 @@ namespace X10D.Tests.Drawing;
|
|||||||
public class PolygonTests
|
public class PolygonTests
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void AddPoints_ShouldAddPoints()
|
public void AddVertices_ShouldAddVertices()
|
||||||
{
|
{
|
||||||
var polygon = Polygon.Empty;
|
var polygon = Polygon.Empty;
|
||||||
polygon.AddVertices(new[] {new Point(1, 2), new Point(3, 4)});
|
polygon.AddVertices(new[] {new Point(1, 2), new Point(3, 4)});
|
||||||
@ -20,7 +20,7 @@ public class PolygonTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void ClearPoints_ShouldClearPoints()
|
public void ClearVertices_ShouldClearVertices()
|
||||||
{
|
{
|
||||||
var polygon = Polygon.Empty;
|
var polygon = Polygon.Empty;
|
||||||
polygon.AddVertices(new[] {new Point(1, 2), new Point(3, 4)});
|
polygon.AddVertices(new[] {new Point(1, 2), new Point(3, 4)});
|
||||||
@ -34,7 +34,7 @@ public class PolygonTests
|
|||||||
}
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void CopyConstructor_ShouldCopyPoints_GivenPolygon()
|
public void CopyConstructor_ShouldCopyVertices_GivenPolygon()
|
||||||
{
|
{
|
||||||
var first = Polygon.Empty;
|
var first = Polygon.Empty;
|
||||||
first.AddVertices(new[] {new Point(1, 2), new Point(3, 4)});
|
first.AddVertices(new[] {new Point(1, 2), new Point(3, 4)});
|
||||||
|
Loading…
Reference in New Issue
Block a user