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