示例#1
0
        public void AddRange_ArrayContact_Success()
        {
            var book     = new PhoneBook();
            var contacts = new[] { new Contact(), new Contact() };

            book.AddRange(contacts);

            Assert.Equal(book.First(), book.First());
            Assert.Equal(book.Last(), book.Last());
            Assert.NotEqual(book.Last(), book.First());
        }