Esempio 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));
 }
Esempio 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));
 }
Esempio 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));
 }