public void setCompanyTest() { Attendee a = new Attendee(); a.setCompany("The Awesome Company"); Assert.AreEqual("The Awesome Company", a.getCompany()); }
public void loadedConstructorTest() { Attendee a = new Attendee(60, "Bob", "Jones", "The Great Company", "*****@*****.**", "(704)555-6789"); Assert.AreEqual(60, a.getId()); Assert.AreEqual("Bob", a.getFirstName()); Assert.AreEqual("Jones", a.getLastName()); Assert.AreEqual("The Great Company", a.getCompany()); Assert.AreEqual("*****@*****.**", a.getEmail()); Assert.AreEqual("(704)555-6789", a.getPhone()); }
public void constructorTest() { Attendee a = new Attendee(); Assert.AreEqual(0, a.getId()); Assert.AreEqual(null, a.getFirstName()); Assert.AreEqual(null, a.getLastName()); Assert.AreEqual(null, a.getCompany()); Assert.AreEqual(null, a.getEmail()); Assert.AreEqual(null, a.getPhone()); }