Example #1
0
                public void ValidName_SetsName()
                {
                    var email = new EmailContact("*****@*****.**", "Name");

                    Assert.Equal("Name", email.Name);
                }
Example #2
0
                public void NullName_SetsNameToNull()
                {
                    var email = new EmailContact("*****@*****.**", name: null);

                    Assert.Null(email.Name);
                }
Example #3
0
                public void ValidEmail_SetsEmail()
                {
                    var email = new EmailContact("*****@*****.**");

                    Assert.Equal("*****@*****.**", email.Email);
                }