public void SubsetWillTruncateIfArrayBoundsAreExceededByStartPlusCount(int expected, int start, int count) { var sourceData = new FrameData(new float[4], new float[4]); Assert.Equal(expected, sourceData.GetSubset(start, count).Length); }
public void GetSubsetWillThrowIfStartIsLargerThanSizeOfSourceData() { var sourceData = new FrameData(new float[4], new float[4]); Assert.Throws(typeof(ArgumentOutOfRangeException), () => { sourceData.GetSubset(5, 1); }); }
public void FrameDataCopyingWillSucceedIfArrayBoundsAreHonoured() { var sourceData = new FrameData(new float[4], new float[4]); Assert.NotNull(sourceData.GetSubset(3, 1)); }