Package ns.foundation

Examples of ns.foundation.NSRange.location()


    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);
View Full Code Here


    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());
View Full Code Here

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);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.