Beispiel #1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testStringPrefix_SomeValues()
        public virtual void TestStringPrefixSomeValues()
        {
            StringPrefixPredicate p = IndexQuery.StringPrefix(_propId, stringValue("dog"));

            assertFalse(Test(p, "doffington"));
            assertFalse(Test(p, "doh, not this again!"));
            assertTrue(Test(p, "dog"));
            assertTrue(Test(p, "doggidog"));
            assertTrue(Test(p, "doggidogdog"));
        }
Beispiel #2
0
        // STRING PREFIX

//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void testStringPrefix_FalseForIrrelevant()
        public virtual void TestStringPrefixFalseForIrrelevant()
        {
            StringPrefixPredicate p = IndexQuery.StringPrefix(_propId, stringValue("dog"));

            AssertFalseForOtherThings(p);
        }