예제 #1
0
 public void TestIsTalented()
 {
     var person = new Person("Scott", "Henderson");
     person.SetTalented(true);
     Assert.IsTrue(person.IsTalented);
 }
예제 #2
0
 public void TestEquals()
 {
     var original = new Person("Wes", "Montgomery");
     var copy = new Person("Wes", "Montgomery");
     Assert.IsTrue(original.Equals(copy));
 }
예제 #3
0
 public void TestConstructor()
 {
     var person = new Person("john", "doe");
     Assert.AreEqual("john doe", person.ToString());
 }
예제 #4
0
 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);
 }
예제 #5
0
 public void Set(Person[] value)
 {
     methodValue = value;
 }