Skip to content

Commit 978b8f6

Browse files
committed
updated coordinate variance tests
1 parent fbb8634 commit 978b8f6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/PolylineAlgorithm.Abstraction.Tests/Internal/CoordinateVarianceTest.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@
66
public class CoordinateVarianceTests {
77
public static IEnumerable<(int Latitude, int Longitude)> Coordinates => [
88
(0, 0),
9-
(10, 20),
10-
(-10, -20),
11-
(100, 200),
12-
(-100, -200),
13-
(123456789, 987654321),
14-
(-123456789, -987654321)
9+
(-10, -10),
10+
(10, -10),
11+
(-10, 10),
12+
(10, 10)
1513
];
1614

1715
[TestMethod]
18-
public void Constructor_Ok() {
16+
public void Constructor_Sets_Defaults() {
1917
// Arrange & Act
2018
CoordinateVariance variance = new();
2119
// Assert
@@ -25,7 +23,7 @@ public void Constructor_Ok() {
2523

2624
[TestMethod]
2725
[DynamicData(nameof(Coordinates), DynamicDataSourceType.Property)]
28-
public void Next_Ok(int latitude, int longitude) {
26+
public void Next_Calculates_Correct_Variance(int latitude, int longitude) {
2927
// Arrange
3028
CoordinateVariance variance = new();
3129
var expected = (latitude, longitude);

0 commit comments

Comments
 (0)