コード例 #1
0
        public void IsTimeGuid()
        {
            Assert.That(TimeGuid.IsTimeGuid(Guid.NewGuid()), Is.False);
            Assert.That(TimeGuid.IsTimeGuid(minGuid), Is.False);
            Assert.That(TimeGuid.IsTimeGuid(maxGuid), Is.False);

            Assert.That(TimeGuid.IsTimeGuid(TimeGuid.NowGuid().ToGuid()), Is.True);
            Assert.That(TimeGuid.IsTimeGuid(TimeGuid.MinValue.ToGuid()), Is.True);
            Assert.That(TimeGuid.IsTimeGuid(TimeGuid.MaxValue.ToGuid()), Is.True);
            Assert.That(TimeGuid.IsTimeGuid(TimeGuid.MinForTimestamp(TimeGuidBitsLayout.GregorianCalendarStart).ToGuid()), Is.True);
            Assert.That(TimeGuid.IsTimeGuid(TimeGuid.MaxForTimestamp(TimeGuidBitsLayout.GregorianCalendarEnd).ToGuid()), Is.True);
        }