HasInside() public method

public HasInside ( System.DateTime test ) : bool
test System.DateTime
return bool
        public void HasInsideTest()
        {
            DateTime now = ClockProxy.Clock.Now;
            TimeSpan offset = Duration.Second;
            TimeRangePeriodRelationTestData testData = new TimeRangePeriodRelationTestData( now, now.AddHours( 1 ), offset );
            TimePeriodCollection timePeriods = new TimePeriodCollection();
            timePeriods.Add( testData.Reference );

            Assert.IsFalse( timePeriods.HasInside( testData.Before ) );
            Assert.IsFalse( timePeriods.HasInside( testData.StartTouching ) );
            Assert.IsFalse( timePeriods.HasInside( testData.StartInside ) );
            Assert.IsFalse( timePeriods.HasInside( testData.InsideStartTouching ) );
            Assert.IsTrue( timePeriods.HasInside( testData.EnclosingStartTouching ) );
            Assert.IsTrue( timePeriods.HasInside( testData.Enclosing ) );
            Assert.IsTrue( timePeriods.HasInside( testData.EnclosingEndTouching ) );
            Assert.IsTrue( timePeriods.HasInside( testData.ExactMatch ) );
            Assert.IsFalse( timePeriods.HasInside( testData.Inside ) );
            Assert.IsFalse( timePeriods.HasInside( testData.InsideEndTouching ) );
            Assert.IsFalse( timePeriods.HasInside( testData.EndInside ) );
            Assert.IsFalse( timePeriods.HasInside( testData.EndTouching ) );
            Assert.IsFalse( timePeriods.HasInside( testData.After ) );
        }