示例#1
0
        public void Should_Generate_Seed_With_Length_Equals_81()
        {
            // Arrange
            var generator = new RandomSeedGenerator();

            // Act
            var seed = generator.CreateNewSeed();

            // Verify
            Assert.Equal(81, seed.Length);
        }
示例#2
0
        public void Should_Return_UpperCase_English_Letters_And_9()
        {
            // Arrange
            var generator = new RandomSeedGenerator();
            var regex     = new Regex("[A-Z9]");

            // Act
            var seed = generator.CreateNewSeed();

            // Verify
            Assert.Matches(regex, seed);
        }