1011121314151617181920
assertEquals(new NSRange(0,0), range); } public void testNSRangeIntInt() { NSRange range = new NSRange(2,3); assertEquals(2, range.location()); assertEquals(3, range.length()); } public void testNSRangeNSRange() { NSRange range = new NSRange(1,1);
2223242526272829303132
assertEquals(range, otherRange); } public void testLocation() { NSRange range = new NSRange(2,3); assertEquals(2, range.location()); } public void testLength() { NSRange range = new NSRange(2,3); assertEquals(3, range.length());
56789101112131415
public class TestNSMutableRange extends BaseTestCase { public void testNSMutableRange() { NSRange range = new NSRange(); assertEquals(0, range.location()); assertEquals(0, range.length()); } public void testNSMutableRangeIntInt() { NSMutableRange range = new NSMutableRange(2,3);