Пример #1
0
        public void Guids_Generated_In_Sequence_Should_Be_Sequential()
        {
            var sut   = new SequentialGuidGenerator();
            var guid1 = sut.GetNextId();
            var guid2 = sut.GetNextId();

            (guid1 < guid2).Should().BeTrue();
        }
Пример #2
0
        public void Should_Generate_A_Sequential_Guid()
        {
            var sut = new SequentialGuidGenerator();

            sut.GetNextId().Value.Should().NotBeEmpty();
        }