public void FetchRunInfo_RunIndexOutOfRange_Throws() { TsString tss = CreateTwoRunString(); TsRunInfo tri; Assert.That(() => tss.FetchRunInfo(2, out tri), Throws.InstanceOf <ArgumentOutOfRangeException>()); }
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 })); }
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 })); }