public void ReadExact_ShouldThrowInCaseOfReadingError() { var stream = new ThrowingStream(); stream.ReadExact(Buffer, 0, 1); }
public async Task ReadExactAsync_ShouldThrowInCaseOfReadingError() { var stream = new ThrowingStream(); await stream.ReadExactAsync(Buffer, 0, 1); }