public void InsertAt_WrongPosition_ThrowsException(double x, double y, int position)
        {
            var polygon = new PolygonCore();
            polygon.Insert(0.1, 1.0);
            polygon.Insert(0.2, 1.1);
            polygon.Insert(0.3, 2.0);

            polygon.InsertAt(x, y, position);
        }
        public void InsertAt_InsertsElementAtGivenPosition_ElementCountIncreased(double x, double y, int position)
        {
            var polygon = new PolygonCore();
            polygon.Insert(0.1, 1.0);
            polygon.Insert(0.2, 1.1);
            polygon.Insert(0.3, 2.0);
            int countBefore = polygon.Points.Count;

            polygon.InsertAt(x, y, position);

            Assert.IsTrue(polygon.Points.Count == countBefore + 1);
        }
        public void InsertAt_InsertsElementAtGivenPosition_InsertedInProperPlace(double x, double y, int position)
        {
            var expectedPoint = new PointCore(x, y);
            var polygon = new PolygonCore();
            polygon.Insert(0.1, 1.0);
            polygon.Insert(0.2, 1.1);
            polygon.Insert(0.3, 2.0);

            polygon.InsertAt(x, y, position);

            Assert.IsTrue(polygon.Points[position].Equals(expectedPoint));
        }