public static Contains ( object expected, ICollection actual ) : void | ||
expected | object | The expected object |
actual | ICollection | The collection to be examined |
return | void |
[Category(TestCategory.Jira)] //TOOLS-7021 public void GetFeaturesInRangeShouldNotThrowForGeometryNull() { var features = GeometryHelper.GetFeaturesInRange(new Coordinate(0, 0), new[] { new Feature { Geometry = null }, new Feature { Geometry = null }, new Feature { Geometry = null } }, 5).ToArray(); Assert.IsEmpty(features); var feature1 = new Feature { Geometry = new Point(0.2, 1) }; var feature2 = new Feature { Geometry = new Point(1, 0, 2) }; features = GeometryHelper.GetFeaturesInRange(new Coordinate(0, 0), new[] { feature1, new Feature { Geometry = null }, feature2 }, 5).ToArray(); Assert.AreEqual(2, features.Count()); Assert.Contains(feature1, features); Assert.Contains(feature2, features); }