public void PluginMustEnsureValidAddressesEvenAnInvalidLocalPartIsProvided()
        {
            var referenceValue = "ka rl";
            var fake           = new FakeRandomizerPlugin <string>(referenceValue);

            var sut = new EmailAddresses(fake);

            var result = sut.GetValue();

            Assert.IsTrue(RFC5322RegEx.IsMatch(result));
        }
        public void LocalPathMustBeUsedFromRandomData()
        {
            var referenceValue = "karl";
            var fake           = new FakeRandomizerPlugin <string>(referenceValue);

            var sut = new EmailAddresses(fake);

            var result = sut.GetValue();

            Assert.IsTrue(result.StartsWith(referenceValue));
            Assert.IsTrue(RFC5322RegEx.IsMatch(result));
        }
        public void DomainNamesAreUsedFromRandomData()
        {
            var referenceValue = "google.com";
            var fake           = new FakeRandomizerPlugin <string>(referenceValue);

            var sut = new EmailAddresses(fake, fake);

            var result = sut.GetValue();

            Assert.IsTrue(result.EndsWith(referenceValue));
            Assert.IsTrue(RFC5322RegEx.IsMatch(result));
        }