public void ChartRepository_Should_AddToDiedCellCountList() { var chartRepository = new ChartRepository(); chartRepository.Should().NotBeNull(); // AddDiedCellCount const int expectedValue = 10; chartRepository.AddDiedCellCount(expectedValue); chartRepository.DiedCellCountList.Count.Should().Be(1); chartRepository.DiedCellCountList[0].Should().Be(expectedValue); }
public void ChartRepository_Should_RemoveExtraValuesFromDiedCellCountList(int count) { var chartRepository = new ChartRepository(); chartRepository.Should().NotBeNull(); // AddDiedCellCount const int length = 100; for (var pos = 0; pos < count; pos++) { chartRepository.AddDiedCellCount(pos); } // check DiedCellCount chartRepository.DiedCellCountList.Count.Should().Be(length); chartRepository.DiedCellCountList[0].Should().Be(count - length); chartRepository.DiedCellCountList[length - 1].Should().Be(count - 1); }