public void TimeStampCurrent() { int skew = 200; // need some skew here as we are not getting the times at same instance. DateTime original = DateTime.UtcNow; DateTime currentDateTimestamp = ProtoUtils.GetCurrentFabricTimestamp().ToDateTime(); DateTime before = original.AddMilliseconds(-skew); DateTime after = original.AddMilliseconds(skew); Assert.IsTrue(before < currentDateTimestamp); Assert.IsTrue(after > currentDateTimestamp); }