public void TestAreWordBondaries() { Assert.IsTrue(StringUtils.AreWordBoundaries("one two three", 0, 12)); Assert.IsTrue(StringUtils.AreWordBoundaries("one two three", 0, 2)); Assert.IsTrue(StringUtils.AreWordBoundaries("one two three", 4, 12)); Assert.IsTrue(StringUtils.AreWordBoundaries("one two three", 4, 6)); Assert.IsFalse(StringUtils.AreWordBoundaries("one two three", 3, 8)); Assert.IsFalse(StringUtils.AreWordBoundaries("one two three", 5, 9)); Assert.IsFalse(StringUtils.AreWordBoundaries("one two three", 0, 9)); Assert.IsFalse(StringUtils.AreWordBoundaries("one two three", 5, 11)); }