Example #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testUpdateSpouseRefsByTextContentWithNamespace()
        public virtual void testUpdateSpouseRefsByTextContentWithNamespace()
        {
            SpouseRef spouseRef = tweety.SpouseRef;

            spouseRef.TextContent = "tns:" + timmy.Id;
            assertThat(tweety.Spouse).isEqualTo(timmy);
        }
Example #2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testUpdateSpouseRefsByTextContent()
        public virtual void testUpdateSpouseRefsByTextContent()
        {
            SpouseRef spouseRef = tweety.SpouseRef;

            spouseRef.TextContent = timmy.Id;
            assertThat(tweety.Spouse).isEqualTo(timmy);
        }
Example #3
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testSetSpouseRefsByHelper()
        public virtual void testSetSpouseRefsByHelper()
        {
            SpouseRef spouseRef = modelInstance.newInstance(typeof(SpouseRef));

            spouseRef.TextContent = timmy.Id;
            tweety.SpouseRef.replaceWithElement(spouseRef);
            assertThat(tweety.Spouse).isEqualTo(timmy);
        }
Example #4
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testSpouseRefsByTextContent()
        public virtual void testSpouseRefsByTextContent()
        {
            SpouseRef spouseRef = tweety.SpouseRef;

            assertThat(spouseRef.TextContent).isEqualTo(hedwig.Id);
        }