Esempio n. 1
0
        public async Task It_Returns_All_Contents_With_A_Large_Buffer()
        {
            // ARRANGE
            var ts = new TestState();

            // ACT, ASSERT
            await ts.VerifyReadLineThenReadBytesAsync(ts.TrailingLineEndings, ts.GetLength(ts.TrailingLineEndings) * 2);
        }
        public async Task It_Returns_All_Contents_With_A_Large_Buffer()
        {
            // ARRANGE
            var ts = new TestState();

            // ACT, ASSERT
            await ts.VerifyReadLineThenReadBytesAsync(ts.TrailingLineEndings, ts.GetLength(ts.TrailingLineEndings) * 2);
        }
        public async Task It_Returns_Correct_Line_With_Large_Buffer()
        {
            // ARRANGE
            var ts = new TestState();
            ts.BufferSize = ts.GetLength(ts.TwoLines) * 2;

            // ACT, ASSERT
            await ts.VerifyAllLinesAsync(ts.TwoLines);
        }
Esempio n. 4
0
        public async Task It_Returns_Correct_Line_With_Large_Buffer()
        {
            // ARRANGE
            var ts = new TestState();

            ts.BufferSize = ts.GetLength(ts.TwoLines) * 2;

            // ACT, ASSERT
            await ts.VerifyAllLinesAsync(ts.TwoLines);
        }