public void TestFourteenYearOldAndADayLongDateMeetsCOPPARequirements() { Assert.IsTrue(COPPA.AgeMeetsCOPPARequirements(DateTime.Today.AddYears(-14).AddDays(-1).AsMilliseconds())); }
public void TestFourteenYearOldDayShortLongDateDoesntMeetsCOPPARequirements() { Assert.IsFalse(COPPA.AgeMeetsCOPPARequirements(DateTime.Today.AddYears(-14).AddDays(1).AsMilliseconds())); }
public void TestFiveYearOldLongDateDoesntMeetsCOPPARequirements() { Assert.IsFalse(COPPA.AgeMeetsCOPPARequirements(DateTime.Today.AddYears(-5).AsMilliseconds())); Assert.IsFalse(COPPA.AgeMeetsCOPPARequirements(DateTime.Today.AddYears(-5).AddMonths(6).AddDays(4).AsMilliseconds())); }
public void TestThirteenYearOldLongDateDoesntMeetsCOPPARequirements() { Assert.IsFalse(COPPA.AgeMeetsCOPPARequirements(DateTime.Today.AddYears(-13).AsMilliseconds())); Assert.IsFalse(COPPA.AgeMeetsCOPPARequirements(DateTime.Today.AddYears(-13).AddMonths(7).AsMilliseconds())); }
public void TestHundredYearOldDateTimeMeetsCOPPARequirements() { Assert.IsTrue(COPPA.AgeMeetsCOPPARequirements(DateTime.Today.AddYears(-100))); Assert.IsTrue(COPPA.AgeMeetsCOPPARequirements(DateTime.Today.AddYears(-100).AddDays(-19))); Assert.IsTrue(COPPA.AgeMeetsCOPPARequirements(DateTime.Today.AddYears(-100).AddMonths(-3).AddDays(-21))); }