public static void AssertPersonsEqual(AtomPerson person, AtomPerson testPerson)
 {
     Assert.AreEqual(person.Name, testPerson.Name, "Person name");
     Assert.AreEqual(person.Email, testPerson.Email, "Person email");
     Assert.AreEqual(person.Type, testPerson.Type, "Person type");
     Assert.AreEqual(person.Uri, testPerson.Uri, "Person Uri");
 }
        /// <summary>
        /// Make some test AtomPersons
        /// </summary>
        /// <param name="count"></param>
        /// <returns></returns>
        internal static List<AtomPerson> MakePersonList(int count, XName name)
        {
            List<AtomPerson> persons = new List<AtomPerson>();

            for (int loopIndex = 0; loopIndex < count; loopIndex++)
            {
                AtomPerson item = new AtomPerson(name);
                item.Lang = "EN";
                item.Base = new Uri("http://base.com");
                item.Uri = new Uri("http://homepage" + loopIndex.ToString() + ".com");
                item.Email = "person" + loopIndex.ToString() + "@testdata.com";
                item.Name = "test person " + loopIndex.ToString();

                persons.Add(item);
            }

            return persons;
        }
        public void FullCreateTest()
        {
            AtomPerson atomPerson = new AtomPerson()
                {
                    Base = new Uri("http://www.base.com"),
                    Email = "*****@*****.**",
                    Lang = "EN",
                    Name = "Fred Bloggs",
                    Uri = new Uri("http://www.fred.com")
                };

            Assert.IsNotNull(atomPerson);
            Assert.IsNotNull(atomPerson.Base);
            Assert.IsNotNull(atomPerson.Uri);

            Assert.AreEqual("*****@*****.**", atomPerson.Email);
            Assert.AreEqual("EN", atomPerson.Lang);
            Assert.AreEqual("Fred Bloggs", atomPerson.Name);

            Assert.AreEqual(new Uri("http://www.base.com"), atomPerson.Base);
            Assert.AreEqual(new Uri("http://www.fred.com"), atomPerson.Uri);
        }
        public void SimpleCreateTest()
        {
            AtomPerson atomPerson = new AtomPerson();

            Assert.IsNotNull(atomPerson);
        }