public async Task NextAsync() { TicksType type = (TicksType)NHibernateUtil.Ticks; object current = new DateTime(2004, 1, 1, 1, 1, 1, 1); object next = await(type.NextAsync(current, null, CancellationToken.None)); Assert.IsTrue(next is DateTime, "Next should be DateTime"); Assert.IsTrue((DateTime)next > (DateTime)current, "next should be greater than current (could be equal depending on how quickly this occurs)"); }
public void Next() { TicksType type = (TicksType)NHibernateUtil.Ticks; object current = new DateTime(2004, 1, 1, 1, 1, 1, 1); object next = type.Next(current, null); Assert.IsTrue(next is DateTime, "Next should be DateTime"); Assert.IsTrue((DateTime)next > (DateTime)current, "next should be greater than current (could be equal depending on how quickly this occurs)"); }
public async Task SeedAsync() { TicksType type = (TicksType)NHibernateUtil.Ticks; Assert.IsTrue(await(type.SeedAsync(null, CancellationToken.None)) is DateTime, "seed should be DateTime"); }
public void Seed() { TicksType type = (TicksType)NHibernateUtil.Ticks; Assert.IsTrue(type.Seed(null) is DateTime, "seed should be DateTime"); }