Пример #1
0
        public void ShouldNotGenerateSameBirthNumberWithDiffrerentSeed()
        {
            NorwegianBirthNumber birthNumber1 = NorwegianBirthNumber.CreateRandom("1");
            NorwegianBirthNumber birthNumber2 = NorwegianBirthNumber.CreateRandom("2");

            birthNumber1.Should().NotBe(birthNumber2);
        }
Пример #2
0
        public void ShouldGenerateSameBirthNumberWithSameSeed()
        {
            NorwegianBirthNumber birthNumber1 = NorwegianBirthNumber.CreateRandom("12345678901");
            NorwegianBirthNumber birthNumber2 = NorwegianBirthNumber.CreateRandom("12345678901");

            birthNumber1.Should().Be(birthNumber2);
        }