We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8786915 commit 62f374bCopy full SHA for 62f374b
1 file changed
…hm.Tests/InvalidPolylineExceptionTest.cs …on.Tests/InvalidPolylineExceptionTest.cstests/PolylineAlgorithm.Tests/InvalidPolylineExceptionTest.cs renamed to tests/PolylineAlgorithm.Abstraction.Tests/InvalidPolylineExceptionTest.cs
@@ -19,13 +19,11 @@ public class InvalidPolylineExceptionTest {
19
public void Throw_Method_Invalid_Coordinate_Parameter_PolylineMalformedException_Throw() {
20
// Arrange
21
var position = Random.Shared.Next();
22
-
23
- // Act
24
static void ThrowAt(int position) => InvalidPolylineException.Throw(position);
25
26
- // Assert
+ // Act && Assert
27
var exception = Assert.ThrowsExactly<InvalidPolylineException>(() => ThrowAt(position));
28
29
Assert.IsFalse(string.IsNullOrWhiteSpace(exception.Message));
+ Assert.IsTrue(exception.Message.Contains(position.ToString()));
30
}
31
0 commit comments