コード例 #1
0
        public void FetchRunInfo_RunIndexOutOfRange_Throws()
        {
            TsString  tss = CreateTwoRunString();
            TsRunInfo tri;

            Assert.That(() => tss.FetchRunInfo(2, out tri), Throws.InstanceOf <ArgumentOutOfRangeException>());
        }
コード例 #2
0
        public void FetchRunInfo_TwoRuns_ReturnsCorrectRunInfo()
        {
            TsString  tss = CreateTwoRunString();
            TsRunInfo tri;

            tss.FetchRunInfo(1, out tri);
            Assert.That(tri, Is.EqualTo(new TsRunInfo {
                ichMin = 16, ichLim = 36, irun = 1
            }));
        }
コード例 #3
0
        public void FetchRunInfo_OneRun_ReturnsCorrectRunInfo()
        {
            TsString  tss = CreateOneRunString();
            TsRunInfo tri;

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