예제 #1
0
        public void GetBoundsOfRun_RunIndexOutOfRange_Throws()
        {
            TsString tss = CreateOneRunString();
            int      ichMin, ichLim;

            Assert.That(() => tss.GetBoundsOfRun(1, out ichMin, out ichLim), Throws.InstanceOf <ArgumentOutOfRangeException>());
        }
예제 #2
0
        public void GetBoundsOfRun_TwoRuns_ReturnsCorrectBounds()
        {
            TsString tss = CreateTwoRunString();
            int      ichMin, ichLim;

            tss.GetBoundsOfRun(1, out ichMin, out ichLim);
            Assert.That(ichMin, Is.EqualTo(16));
            Assert.That(ichLim, Is.EqualTo(36));
        }
예제 #3
0
        public void GetBoundsOfRun_OneRun_ReturnsCorrectBounds()
        {
            TsString tss = CreateOneRunString();
            int      ichMin, ichLim;

            tss.GetBoundsOfRun(0, out ichMin, out ichLim);
            Assert.That(ichMin, Is.EqualTo(0));
            Assert.That(ichLim, Is.EqualTo(15));
        }