mysql-net/AdoNetApiTest

Test GetBytes with null buffer

Closed this issue · 2 comments

Another one of those de facto behaviors is that calling GetBytes with a null buffer will return the length of the data.

This should already be tested here:

[Fact]
public virtual void GetBytes_returns_length_when_buffer_is_null() => TestGetBytes(reader =>
{
Assert.Equal(4, reader.GetBytes(0, 0, null, 0, 0));
});

Doh, I searched for it too...