public void ShouldNotGenerateSameBirthNumberWithDiffrerentSeed() { NorwegianBirthNumber birthNumber1 = NorwegianBirthNumber.CreateRandom("1"); NorwegianBirthNumber birthNumber2 = NorwegianBirthNumber.CreateRandom("2"); birthNumber1.Should().NotBe(birthNumber2); }
public void ShouldGenerateSameBirthNumberWithSameSeed() { NorwegianBirthNumber birthNumber1 = NorwegianBirthNumber.CreateRandom("12345678901"); NorwegianBirthNumber birthNumber2 = NorwegianBirthNumber.CreateRandom("12345678901"); birthNumber1.Should().Be(birthNumber2); }