public void CalculateTakeByRecordCount_Should_ReturnAccountingRecordCount_WhenRecordProvided( int skip, int take, int recordCount, int expected) { Assert.Equal(expected, CollectionUtilities.CalculateTakeByRecordCount(skip, take, recordCount)); }
public void CalculateTakeByRecordCount_Should_Return0_WhenRecordCount0() { Assert.Equal(0, CollectionUtilities.CalculateTakeByRecordCount(0, 1, 0)); }
public void CalculateTakeByRecordCount_Should_ReturnTake_WhenRecordCountNegative() { Assert.Equal(1, CollectionUtilities.CalculateTakeByRecordCount(0, 1, -1)); }