示例#1
0
        public void FetchRunInfoAt_IchOutOfRange_Throws()
        {
            TsString  tss = CreateTwoRunString();
            TsRunInfo tri;

            Assert.That(() => tss.FetchRunInfoAt(37, out tri), Throws.InstanceOf <ArgumentOutOfRangeException>());
        }
示例#2
0
        public void FetchRunInfoAt_TwoRuns_ReturnsCorrectRunInfo()
        {
            TsString  tss = CreateTwoRunString();
            TsRunInfo tri;

            tss.FetchRunInfoAt(18, out tri);
            Assert.That(tri, Is.EqualTo(new TsRunInfo {
                ichMin = 16, ichLim = 36, irun = 1
            }));
        }
示例#3
0
        public void FetchRunInfoAt_OneRun_ReturnsCorrectRunInfo()
        {
            TsString  tss = CreateOneRunString();
            TsRunInfo tri;

            tss.FetchRunInfoAt(3, out tri);
            Assert.That(tri, Is.EqualTo(new TsRunInfo {
                ichMin = 0, ichLim = 15, irun = 0
            }));
        }