public void TestIsTalented() { var person = new Person("Scott", "Henderson"); person.SetTalented(true); Assert.IsTrue(person.IsTalented); }
public void TestEquals() { var original = new Person("Wes", "Montgomery"); var copy = new Person("Wes", "Montgomery"); Assert.IsTrue(original.Equals(copy)); }
public void TestConstructor() { var person = new Person("john", "doe"); Assert.AreEqual("john doe", person.ToString()); }
public void TestConstructorWithId() { var person = new Person(1, "jane", "roe"); Assert.AreEqual("jane roe", person.ToString()); Assert.AreEqual("jane", person.FirstName); Assert.AreEqual("roe", person.LastName); Assert.AreEqual(1, person.Id); }
public void Set(Person[] value) { methodValue = value; }