Fix incorrect Debug.Assert statements

This commit is contained in:
Pranav K 2019-01-02 13:38:41 -08:00
parent 7c2add8ea4
commit 94dd5eff21
1 changed files with 1 additions and 2 deletions

View File

@ -210,7 +210,7 @@ namespace Microsoft.AspNetCore.WebUtilities
private async Task WriteAsyncAwaited(char[] values, int index, int count)
{
Debug.Assert(count > 0);
Debug.Assert(_charBufferSize - _charBufferCount > count);
Debug.Assert(_charBufferSize - _charBufferCount < count);
while (count > 0)
{
@ -220,7 +220,6 @@ namespace Microsoft.AspNetCore.WebUtilities
}
CopyToCharBuffer(values, ref index, ref count);
Debug.Assert(count == 0);
}
}