Skip to content

Commit 58f1a53

Browse files
author
Pete Sramek
committed
removed static data values for tests
1 parent 21f5e92 commit 58f1a53

File tree

4 files changed

+2
-182
lines changed

4 files changed

+2
-182
lines changed

tests/PolylineAlgorithm.Tests/Data/Values.cs

Lines changed: 0 additions & 176 deletions
This file was deleted.

tests/PolylineAlgorithm.Tests/InvalidPolylineExceptionTest.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55

66
namespace PolylineAlgorithm.Tests;
77

8-
using PolylineAlgorithm.Tests.Data;
9-
108
/// <summary>
119
/// Defines tests for the <see cref="InvalidPolylineException"/> type.
1210
/// </summary>
@@ -18,7 +16,7 @@ public class InvalidPolylineExceptionTest {
1816
[TestMethod]
1917
public void Throw_Method_Invalid_Coordinate_Parameter_PolylineMalformedException_Throw() {
2018
// Arrange
21-
var position = Values.MalformedPolylineException.Position;
19+
var position = Random.Shared.Next();
2220

2321
// Act
2422
static void ThrowAt(int position) => InvalidPolylineException.Throw(position);

tests/PolylineAlgorithm.Tests/PolylineDecoderTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ namespace PolylineAlgorithm.Tests;
77

88
using PolylineAlgorithm;
99
using PolylineAlgorithm.Extensions;
10-
using PolylineAlgorithm.Tests.Data;
1110
using PolylineAlgorithm.Utility;
1211

1312
/// <summary>

tests/PolylineAlgorithm.Tests/PolylineEncoderTest.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
namespace PolylineAlgorithm.Tests;
77

8-
using PolylineAlgorithm.Tests.Data;
98
using PolylineAlgorithm.Utility;
109

1110
/// <summary>
@@ -43,7 +42,7 @@ void EncodeNullCoordinates() {
4342
[TestMethod]
4443
public void Encode_EmptyInput_ThrowsException() {
4544
// Arrange
46-
IEnumerable<Coordinate> empty = Values.Coordinates.Empty;
45+
IEnumerable<Coordinate> empty = [];
4746

4847
// Act
4948
void EncodeEmptyCoordinates() {

0 commit comments

Comments
 (0)