コード例 #1
0
        public void NSString_GetLineStart()
        {
            NSString input = new NSString("Hey\nHow\nYou\nDoing");
            nuint    start, lineEnd, contentsEnd;

            input.GetLineStart(out start, out lineEnd, out contentsEnd, new NSRange(5, 11));
            Assert.AreEqual((nuint)4, start);
            Assert.AreEqual((nuint)17, lineEnd);
            Assert.AreEqual((nuint)17, contentsEnd);
        }