示例#1
0
//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;
        }
示例#2
0
//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;
        }
示例#3
0
//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;
        }
示例#4
0
//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);
        }
示例#5
0
//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);
        }