Пример #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;
 }