public function testEndsWithStartsWith() { $this->assertTrue(QString::StartsWith("This is a test", "This")); $this->assertFalse(QString::StartsWith("This is a test", "this")); $this->assertTrue(QString::StartsWith("This is a test", "Thi")); $this->assertFalse(QString::StartsWith("This is a test", "is a")); $this->assertFalse(QString::StartsWith("This is a test", "X")); $this->assertTrue(QString::StartsWith("This is a test", "")); $this->assertTrue(QString::EndsWith("This is a test", "test")); $this->assertFalse(QString::EndsWith("This is a test", "Test")); $this->assertTrue(QString::EndsWith("This is a test", "est")); $this->assertFalse(QString::EndsWith("This is a test", "is a")); $this->assertFalse(QString::EndsWith("This is a test", "X")); $this->assertTrue(QString::EndsWith("This is a test", "")); }