File tree Expand file tree Collapse file tree
tests/PolylineAlgorithm.Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -609,7 +609,7 @@ public void ValidateFormat_With_Single_Terminator_Does_Not_Throw() {
609609 [ TestMethod ]
610610 public void ValidateFormat_With_Block_Too_Long_Throws_InvalidPolylineException ( ) {
611611 // Act & Assert
612- Assert . ThrowsExactly < InvalidPolylineException > ( ( ) => PolylineEncoding . ValidateFormat ( "_____________?" ) ) ; // 14-char block ( max is 13)
612+ Assert . ThrowsExactly < InvalidPolylineException > ( ( ) => PolylineEncoding . ValidateFormat ( "_____________?" ) ) ; // 13 continuation chars + terminator = block length 14, exceeds max of 13
613613 }
614614
615615 #endregion
@@ -668,7 +668,7 @@ public void ValidateBlockLength_With_Valid_Polyline_Does_Not_Throw(string polyli
668668 /// Tests that ValidateBlockLength throws <see cref="InvalidPolylineException"/> for invalid block structures.
669669 /// </summary>
670670 [ TestMethod ]
671- [ DataRow ( "_____________?" ) ] // 13-char block ( exceeds max of 13 = blockLen 14)
671+ [ DataRow ( "_____________?" ) ] // 13 continuation chars + terminator = block length 14, exceeds max of 13
672672 [ DataRow ( "________" ) ] // all continuation chars, no terminator
673673 [ DataRow ( "" ) ] // empty polyline has no terminator
674674 [ DataRow ( "?_____________?" ) ] // valid block then too-long block
You can’t perform that action at this time.
0 commit comments