public void LineToPointAdapter_ShouldHashSameLineValues() { var points1 = new LineToPointAdapter(_line); var points2 = new LineToPointAdapter(_line); Assert.That(points1.ElementAt(0), Is.EqualTo(points2.ElementAt(0))); Assert.That(points1.ElementAt(1), Is.EqualTo(points2.ElementAt(1))); }
public void LineToPointAdapter_ShouldConvertLineToPoints() { var points = new LineToPointAdapter(_line); Assert.That(points.Count(), Is.EqualTo(2)); var point1 = points.ElementAt(0); var point2 = points.ElementAt(1); Assert.That(point1.X, Is.EqualTo(1)); Assert.That(point1.Y, Is.EqualTo(1)); Assert.That(point2.X, Is.EqualTo(1)); Assert.That(point2.Y, Is.EqualTo(2)); }