public void ChartRepository_Should_AddToBornedCellCountList() { var chartRepository = new ChartRepository(); chartRepository.Should().NotBeNull(); // AddBornedCellCount const int expectedValue = 10; chartRepository.AddBornedCellCount(expectedValue); chartRepository.BornedCellCountList.Count.Should().Be(1); chartRepository.BornedCellCountList[0].Should().Be(expectedValue); }
public void ChartRepository_Should_RemoveExtraValuesFromBornedCellCountList(int count) { var chartRepository = new ChartRepository(); chartRepository.Should().NotBeNull(); // AddBornedCellCount const int length = 100; for (var pos = 0; pos < count; pos++) { chartRepository.AddBornedCellCount(pos); } // check BornedCellCount chartRepository.BornedCellCountList.Count.Should().Be(length); chartRepository.BornedCellCountList[0].Should().Be(count - length); chartRepository.BornedCellCountList[length - 1].Should().Be(count - 1); }