示例#1
0
        internal virtual List <SegmentFile> CreateSegmentFiles(int size)
        {
            List <SegmentFile> list = new List <SegmentFile>(size);

            for (int i = 0; i < size; i++)
            {
                SegmentFile file = mock(typeof(SegmentFile));
                when(file.Header()).thenReturn(TestSegmentHeader(i));
                when(file.Size()).thenReturn(1L);
                list.Add(file);
            }
            return(list);
        }