Ejemplo n.º 1
0
        public void ListContainsSingleEmail()
        {
            var sut = new ConfigEmail();

            sut.To = "*****@*****.**";

            var result = sut.To_AsList();

            Assert.Single(result);
            Assert.Equal("*****@*****.**", result.First());
        }
Ejemplo n.º 2
0
        public void ListContainsMultipleEmails()
        {
            var sut = new ConfigEmail();

            sut.To = "[email protected];[email protected];[email protected]";

            var result = sut.To_AsList();

            Assert.Equal(3, result.Count());
            Assert.Contains("*****@*****.**", result);
            Assert.Contains("*****@*****.**", result);
            Assert.Contains("*****@*****.**", result);
        }