コード例 #1
0
        public void LockText_OneRun_ReturnsCorrectString()
        {
            TsString tss = CreateOneRunString();
            string   text;
            int      len;

            tss.LockText(out text, out len);
            Assert.That(text, Is.EqualTo(EnglishText));
            Assert.That(len, Is.EqualTo(EnglishText.Length));
            tss.UnlockText(text);
        }
コード例 #2
0
        public void LockText_TwoRuns_ReturnsCorrectString()
        {
            TsString tss = CreateTwoRunString();
            string   text;
            int      len;

            tss.LockText(out text, out len);
            Assert.That(text, Is.EqualTo(CombinedText));
            Assert.That(len, Is.EqualTo(CombinedText.Length));
            tss.UnlockText(text);
        }
コード例 #3
0
        public void LockText_Empty_ReturnsEmptyString()
        {
            TsString tss = CreateEmptyString();
            string   text;
            int      len;

            tss.LockText(out text, out len);
            Assert.That(text, Is.EqualTo(string.Empty));
            Assert.That(len, Is.EqualTo(0));
            tss.UnlockText(text);
        }