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