Ejemplo n.º 1
0
 public void TestPersonDogStatic2()
 {
     Person p1 = new Person();
     Dog d1 = new Dog();
     p1.Pets.Add(d1);
     Assert.AreEqual(p1, d1.Owner);
     Assert.IsTrue(p1.Pets.Contains(d1));
 }
Ejemplo n.º 2
0
 public void TestPersonPetStatic1()
 {
     Person p1 = new Person();
     Pet t1 = new Pet();
     t1.Owner = p1;
     Assert.AreEqual(t1.Owner, p1);
     Assert.IsTrue(p1.Pets.Contains(t1));
 }
Ejemplo n.º 3
0
 public void TestPersonDogStatic1()
 {
     Person p1 = new Person();
     Dog d1 = new Dog();
     d1.Owner = p1;
     Assert.AreEqual(d1.Owner, p1);
     Assert.IsTrue(p1.Pets.Contains(d1));
 }