Skip to content

Commit 62f374b

Browse files
committed
inva;lid polyline eception test moved to corect project
1 parent 8786915 commit 62f374b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

tests/PolylineAlgorithm.Tests/InvalidPolylineExceptionTest.cs renamed to tests/PolylineAlgorithm.Abstraction.Tests/InvalidPolylineExceptionTest.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@ public class InvalidPolylineExceptionTest {
1919
public void Throw_Method_Invalid_Coordinate_Parameter_PolylineMalformedException_Throw() {
2020
// Arrange
2121
var position = Random.Shared.Next();
22-
23-
// Act
2422
static void ThrowAt(int position) => InvalidPolylineException.Throw(position);
2523

26-
// Assert
24+
// Act && Assert
2725
var exception = Assert.ThrowsExactly<InvalidPolylineException>(() => ThrowAt(position));
28-
2926
Assert.IsFalse(string.IsNullOrWhiteSpace(exception.Message));
27+
Assert.IsTrue(exception.Message.Contains(position.ToString()));
3028
}
3129
}

0 commit comments

Comments
 (0)