public void TimestampCreation() { Timestamp timestamp1 = Timestamp.CreateNew(); Timestamp timestamp2 = Timestamp.CreateNew(); Assert.AreNotEqual(timestamp1, timestamp2); }
public void BinaryCompare3() { Timestamp timestamp1 = Timestamp.CreateNew(); Timestamp timestamp2 = Timestamp.CreateNew(); int res = timestamp2.CompareTo(timestamp1); Assert.IsTrue(res > 0); }
public void BinaryCompare1() { Timestamp timestamp1 = Timestamp.CreateNew(); Timestamp timestamp2 = timestamp1; int res = timestamp1.CompareTo(timestamp2); Assert.AreEqual(0, res); }
public void GetLastTimestamp() { Timestamp timestamp1 = Timestamp.CreateNew(); int res = timestamp1.CompareTo(Timestamp.GetLastTimestamp()); Assert.AreEqual(0, res); Timestamp timestamp2 = Timestamp.CreateNew(); res = timestamp2.CompareTo(Timestamp.GetLastTimestamp()); Assert.AreEqual(0, res); res = timestamp1.CompareTo(Timestamp.GetLastTimestamp()); Assert.AreNotEqual(0, res); }
protected override Timestamp Apply(Timestamp value, IExecutionContext context) { return(Timestamp.CreateNew()); }