public void PointsSetter_NullPoints_AreaUpdated()
        {
            LocationView view = new DummyLocationView();

            view.Points = null;
            view.Draw(tkMock.Object, new Area(new Point(0.5, 0.5), 1, 1));

            tkMock.Verify(tk => tk.Begin(), Times.Never());
            tkMock.Verify(tk => tk.End(), Times.Never());
        }
        public void PointsSetter_OnePoint_AreaUpdated()
        {
            LocationView view   = new DummyLocationView();
            var          points = new List <Point> ();

            points.Add(new Point(1, 1));

            // The area is updated correctly and the draw function will draw it
            view.Points = points;
            view.Draw(tkMock.Object, new Area(new Point(0.5, 0.5), 1, 1));

            tkMock.Verify(tk => tk.Begin(), Times.Once());
            tkMock.Verify(tk => tk.End(), Times.Once());
        }