1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-23 00:38:47 +00:00

Refer to points as vertices in unit tests

This commit is contained in:
Oliver Booth 2022-06-01 19:43:24 +01:00
parent 08d84ed6a2
commit f02de2ad14
No known key found for this signature in database
GPG Key ID: 32A00B35503AF634
2 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@ namespace X10D.Tests.Drawing;
public class PolygonFTests
{
[TestMethod]
public void AddPoints_ShouldAddPoints()
public void AddVertices_ShouldAddVertices()
{
var polygon = PolygonF.Empty;
polygon.AddVertices(new[] {new PointF(1, 2), new PointF(3, 4)});
@ -20,7 +20,7 @@ public class PolygonFTests
}
[TestMethod]
public void ClearPoints_ShouldClearPoints()
public void ClearVertices_ShouldClearVertices()
{
var polygon = PolygonF.Empty;
polygon.AddVertices(new[] {new Vector2(1, 2), new Vector2(3, 4)});
@ -34,7 +34,7 @@ public class PolygonFTests
}
[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 vectorPolygon = new PolygonF(new[] {new Vector2(1, 2), new Vector2(3, 4)});
@ -44,7 +44,7 @@ public class PolygonFTests
}
[TestMethod]
public void CopyConstructor_ShouldCopyPoints_GivenPolygon()
public void CopyConstructor_ShouldCopyVertices_GivenPolygon()
{
var first = PolygonF.Empty;
first.AddVertices(new[] {new PointF(1, 2), new PointF(3, 4)});

View File

@ -8,7 +8,7 @@ namespace X10D.Tests.Drawing;
public class PolygonTests
{
[TestMethod]
public void AddPoints_ShouldAddPoints()
public void AddVertices_ShouldAddVertices()
{
var polygon = Polygon.Empty;
polygon.AddVertices(new[] {new Point(1, 2), new Point(3, 4)});
@ -20,7 +20,7 @@ public class PolygonTests
}
[TestMethod]
public void ClearPoints_ShouldClearPoints()
public void ClearVertices_ShouldClearVertices()
{
var polygon = Polygon.Empty;
polygon.AddVertices(new[] {new Point(1, 2), new Point(3, 4)});
@ -34,7 +34,7 @@ public class PolygonTests
}
[TestMethod]
public void CopyConstructor_ShouldCopyPoints_GivenPolygon()
public void CopyConstructor_ShouldCopyVertices_GivenPolygon()
{
var first = Polygon.Empty;
first.AddVertices(new[] {new Point(1, 2), new Point(3, 4)});