Пример #1
0
        public void TwoGuidsShouldNotEqual()
        {
            var generator = new ReactIdGenerator();

            var shortGuid1 = generator.Generate();
            var shortGuid2 = generator.Generate();

            Assert.NotEqual(shortGuid1, shortGuid2);
        }
Пример #2
0
        public void ShouldStartsWithReact()
        {
            var generator = new ReactIdGenerator();

            var shortGuid = generator.Generate();

            Assert.StartsWith("react_", shortGuid);
        }
Пример #3
0
        public void GuidShouldHaveFixedRange()
        {
            var generator = new ReactIdGenerator();

            var shortGuid = generator.Generate();

            Assert.Equal(19, shortGuid.Length);
        }