Skip to content

Commit 27f22d8

Browse files
committed
added to string tests case
1 parent 848635c commit 27f22d8

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

tests/PolylineAlgorithm.Tests/PolylineTest.cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,24 @@ public void ToString_Returns_Correct_String(int size) {
116116
Assert.AreEqual(expected, result);
117117
}
118118

119+
/// <summary>
120+
/// Tests the <see cref="Polyline.ToString"/> method.
121+
/// </summary>
122+
/// <param name="value">The string value.</param>
123+
[TestMethod]
124+
[DynamicData(nameof(LengthParameters))]
125+
public void ToString_Returns_Empty_String(int size) {
126+
// Arrange
127+
Polyline polyline = new Polyline();
128+
string expected = string.Empty;
129+
130+
// Act
131+
string result = polyline.ToString();
132+
133+
// Assert
134+
Assert.AreEqual(expected, result);
135+
}
136+
119137
/// <summary>
120138
/// Tests the <see cref="Polyline.ToCharArray"/> method.
121139
/// </summary>

0 commit comments

Comments
 (0)