You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The analyzer suggests that the last line should be changed to Assert.Empty(array.Count). However, because ArraySegment<T>.GetEnumerator() throws InvalidOperationException when the underlying array is null, the test fails with an uncaught InvalidOperationException.
The text was updated successfully, but these errors were encountered:
Similar issue (in fact, the root cause might be the same): #1206
Consider the following code:
The analyzer suggests that the last line should be changed to
Assert.Empty(array.Count)
. However, becauseArraySegment<T>.GetEnumerator()
throwsInvalidOperationException
when the underlying array is null, the test fails with an uncaught InvalidOperationException.The text was updated successfully, but these errors were encountered: