コード例 #1
0
 public void CalculateTakeByRecordCount_Should_ReturnAccountingRecordCount_WhenRecordProvided(
     int skip,
     int take,
     int recordCount,
     int expected)
 {
     Assert.Equal(expected, CollectionUtilities.CalculateTakeByRecordCount(skip, take, recordCount));
 }
コード例 #2
0
 public void CalculateTakeByRecordCount_Should_Return0_WhenRecordCount0()
 {
     Assert.Equal(0, CollectionUtilities.CalculateTakeByRecordCount(0, 1, 0));
 }
コード例 #3
0
 public void CalculateTakeByRecordCount_Should_ReturnTake_WhenRecordCountNegative()
 {
     Assert.Equal(1, CollectionUtilities.CalculateTakeByRecordCount(0, 1, -1));
 }