File tree Expand file tree Collapse file tree 4 files changed +2
-182
lines changed
tests/PolylineAlgorithm.Tests Expand file tree Collapse file tree 4 files changed +2
-182
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
6
6
namespace PolylineAlgorithm . Tests ;
7
7
8
- using PolylineAlgorithm . Tests . Data ;
9
-
10
8
/// <summary>
11
9
/// Defines tests for the <see cref="InvalidPolylineException"/> type.
12
10
/// </summary>
@@ -18,7 +16,7 @@ public class InvalidPolylineExceptionTest {
18
16
[ TestMethod ]
19
17
public void Throw_Method_Invalid_Coordinate_Parameter_PolylineMalformedException_Throw ( ) {
20
18
// Arrange
21
- var position = Values . MalformedPolylineException . Position ;
19
+ var position = Random . Shared . Next ( ) ;
22
20
23
21
// Act
24
22
static void ThrowAt ( int position ) => InvalidPolylineException . Throw ( position ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ namespace PolylineAlgorithm.Tests;
7
7
8
8
using PolylineAlgorithm ;
9
9
using PolylineAlgorithm . Extensions ;
10
- using PolylineAlgorithm . Tests . Data ;
11
10
using PolylineAlgorithm . Utility ;
12
11
13
12
/// <summary>
Original file line number Diff line number Diff line change 5
5
6
6
namespace PolylineAlgorithm . Tests ;
7
7
8
- using PolylineAlgorithm . Tests . Data ;
9
8
using PolylineAlgorithm . Utility ;
10
9
11
10
/// <summary>
@@ -43,7 +42,7 @@ void EncodeNullCoordinates() {
43
42
[ TestMethod ]
44
43
public void Encode_EmptyInput_ThrowsException ( ) {
45
44
// Arrange
46
- IEnumerable < Coordinate > empty = Values . Coordinates . Empty ;
45
+ IEnumerable < Coordinate > empty = [ ] ;
47
46
48
47
// Act
49
48
void EncodeEmptyCoordinates ( ) {
You can’t perform that action at this time.
0 commit comments