//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testUpdateSpouseByRemoveElement() public virtual void testUpdateSpouseByRemoveElement() { Animals animals = (Animals)modelInstance.DocumentElement; animals.getAnimals().remove(hedwig); assertThat(tweety.Spouse).Null; }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testUpdateFlightInstructorByRemoveElement() public virtual void testUpdateFlightInstructorByRemoveElement() { Animals animals = (Animals)modelInstance.DocumentElement; animals.getAnimals().remove(hedwig); assertThat(tweety.FlightInstructor).Null; }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testUpdateMotherByRemoveElement() public virtual void testUpdateMotherByRemoveElement() { egg1.Mother = hedwig; Animals animals = (Animals)modelInstance.DocumentElement; animals.getAnimals().remove(hedwig); assertThat(egg1.Mother).Null; }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testClearGuardedEggRefs() public virtual void testClearGuardedEggRefs() { timmy.GuardedEggRefs.Clear(); assertThat(timmy.GuardedEggRefs).Empty; // should not affect animals collection Animals animals = (Animals)modelInstance.DocumentElement; assertThat(animals.getAnimals()).NotEmpty.hasSize(3); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test public void testClearFlightPartnerRefElements() public virtual void testClearFlightPartnerRefElements() { tweety.FlightPartnerRefElements.Clear(); assertThat(tweety.FlightPartnerRefElements).Empty; // should not affect animals collection Animals animals = (Animals)modelInstance.DocumentElement; assertThat(animals.getAnimals()).NotEmpty.hasSize(7); }