public void ChartRepository_Should_AddToTotalCellCountList() { var chartRepository = new ChartRepository(); chartRepository.Should().NotBeNull(); // AddTotalCellCount const int expectedValue = 10; chartRepository.AddTotalCellCount(expectedValue); chartRepository.TotalCellCountList.Count.Should().Be(1); chartRepository.TotalCellCountList[0].Should().Be(expectedValue); }
public void ChartRepository_Should_RemoveExtraValuesFromTotalCellCountList(int count) { var chartRepository = new ChartRepository(); chartRepository.Should().NotBeNull(); // AddTotalCellCount const int length = 100; for (var pos = 0; pos < count; pos++) { chartRepository.AddTotalCellCount(pos); } // check TotalCellCount chartRepository.TotalCellCountList.Count.Should().Be(length); chartRepository.TotalCellCountList[0].Should().Be(count - length); chartRepository.TotalCellCountList[length - 1].Should().Be(count - 1); }