Exemplo n.º 1
0
 public void TestStudentDogStatic2()
 {
     Student s1 = new Student();
     Dog d1 = new Dog();
     s1.Pets.Add(d1);
     Assert.AreEqual(d1.Owner, s1);
     Assert.IsTrue(s1.Pets.Contains(d1));
 }
Exemplo n.º 2
0
 public void TestStudentPetStatic2()
 {
     Student s1 = new Student();
     Pet t1 = new Pet();
     s1.Pets.Add(t1);
     Assert.AreEqual(t1.Owner, s1);
     Assert.IsTrue(s1.Pets.Contains(t1));
 }
Exemplo n.º 3
0
 public void TestStudentDogStatic4()
 {
     Student s1 = new Student();
     Dog d1 = new Dog();
     s1.Dogs.Add(d1);
     Assert.AreEqual(d1.Friend, s1);
     Assert.IsTrue(s1.Dogs.Contains(d1));
 }