public void TryParse_StringEmpty_EmptyCollection() { EmailAddressCollection exp = new EmailAddressCollection(); Assert.IsTrue(EmailAddressCollection.TryParse(string.Empty, out EmailAddressCollection act)); CollectionAssert.AreEqual(exp, act); }
public void TryParse_Invalid_EmptyCollection() { var act = EmailAddressCollection.TryParse("invalid"); var exp = new EmailAddressCollection(); CollectionAssert.AreEqual(exp, act); }
public void TryParse_Null_EmptyCollection() { EmailAddressCollection exp = new EmailAddressCollection(); Assert.IsTrue(EmailAddressCollection.TryParse(null, out EmailAddressCollection act)); CollectionAssert.AreEqual(exp, act); }
public void TryParse_SingleEmailAddress_CollectionWithOneItems() { var act = EmailAddressCollection.TryParse("*****@*****.**"); var exp = new EmailAddressCollection { EmailAddress.Parse("*****@*****.**") }; CollectionAssert.AreEqual(exp, act); }