Skip to content

Commit eee8998

Browse files
committed
added edge cases to coordinat etests
1 parent da00785 commit eee8998

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

tests/PolylineAlgorithm.Tests/CoordinateTest.cs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,16 @@ public class CoordinateTest {
2626
/// Provides test data for the <see cref="Constructor_Invalid_Parameters_Ok"/> method.
2727
/// </summary>
2828
public static IEnumerable<object[]> Constructor_Invalid_Parameters => [
29-
[double.MaxValue, double.MaxValue],
30-
[double.MinValue, double.MinValue],
31-
[double.MaxValue, double.MinValue],
32-
[double.MinValue, double.MaxValue],
29+
[double.MinValue, 0],
30+
[double.MaxValue, 0],
31+
[double.NaN, 0],
32+
[double.PositiveInfinity, 0],
33+
[double.NegativeInfinity, 0],
34+
[0, double.MinValue],
35+
[0, double.MaxValue],
36+
[0, double.NaN],
37+
[0, double.PositiveInfinity],
38+
[0, double.NegativeInfinity]
3339
];
3440

3541
/// <summary>

0 commit comments

Comments
 (0)