Overlap() public method

Does the daterange overlap the specified date?
public Overlap ( System.DateTime date ) : bool
date System.DateTime The date.
return bool
Ejemplo n.º 1
0
 public void OverlapsOnStartDate()
 {
     dr = new DateRange(start, end);
     Assert.IsTrue(dr.Overlap(new DateTime(2009, 11, 06)));
 }
Ejemplo n.º 2
0
        public void DoesNotOverlap()
        {
            dr = new DateRange(start, end);

            Assert.IsFalse(dr.Overlap(new DateTime(2009, 12, 10)));
        }