Example #1
0
        public void given_draw_line_and_2_click_should_return_a_valid_line_object()
        {
            var expect = new Line(new Point(1, 1), new Point(1, 2));

            _sut.Process("line");
            _sut.Process("1,1");
            _sut.Process("1,2");
            _mockPad.Verify(o => o.Add(expect), Times.Once());
        }
Example #2
0
 protected bool Equals(Line other)
 {
     return _begin.Equals(other._begin) && _end.Equals(other._end);
 }