Ejemplo n.º 1
0
Archivo: Ray.cs Proyecto: Umqra/tdd
 public bool Equals(Ray other)
 {
     return(From.Equals(other.From) && Direction.HasSameDirectionAs(other.Direction));
 }
Ejemplo n.º 2
0
 public bool Equals(Rectangle other)
 {
     return BottomLeft.Equals(other.BottomLeft) && TopRight.Equals(other.TopRight);
 }
Ejemplo n.º 3
0
Archivo: Segment.cs Proyecto: Umqra/tdd
 public bool Equals(Segment other)
 {
     return((A.Equals(other.A) && B.Equals(other.B)) ||
            (A.Equals(other.B) && B.Equals(other.A)));
 }
Ejemplo n.º 4
0
 private IEnumerable<Segment> MayBeSegment(Point a, Point b)
 {
     if (!a.Equals(b))
         yield return new Segment(a, b);
 }