We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdddc05 commit 9bec6e4Copy full SHA for 9bec6e4
1 file changed
tests/PolylineAlgorithm.Tests/PolylineTest.cs
@@ -261,4 +261,21 @@ public void CopyTo_Null_Destination_Parameter_Throws_ArgumentNullException(int s
261
// Assert
262
Assert.IsFalse(string.IsNullOrWhiteSpace(exception.Message));
263
}
264
+
265
+ [TestMethod]
266
+ public void Equality_Operators_OK() {
267
+ // Arrange
268
+ Polyline first = Polyline.FromString(nameof(first));
269
+ Polyline equal = Polyline.FromString(nameof(first));
270
+ Polyline notEqual = Polyline.FromString(nameof(notEqual));
271
272
+ // Act && Assert
273
+ Assert.IsTrue(first == equal);
274
+ Assert.IsTrue(first != notEqual);
275
+ Assert.IsTrue(first.Equals(equal));
276
277
+ Assert.IsFalse(first != equal);
278
+ Assert.IsFalse(first == notEqual);
279
+ Assert.IsFalse(first.Equals(notEqual));
280
+ }
281
0 commit comments