Пример #1
0
        public void HasNonNullValues()
        {
            var timeSeriesData = new TimeSeriesData <AnnualDecimal>();

            timeSeriesData.Add(new AnnualDecimal(10, 0));
            timeSeriesData.Add(new AnnualDecimal(20, null));
            Assert.That(timeSeriesData.HasNonNullValues(), Is.True);
            Assert.That(timeSeriesData.HasNonZeroValues(), Is.False);
        }
Пример #2
0
        public void HasZeroValues()
        {
            var timeSeriesData = new TimeSeriesData <AnnualDecimal>();

            timeSeriesData.Add(new AnnualDecimal(10, 0));
            timeSeriesData.Add(new AnnualDecimal(20, 0));
            Assert.That(timeSeriesData.HasNonNullValues(), Is.True);
            Assert.That(timeSeriesData.HasNonZeroValues(), Is.False);
            Assert.That(timeSeriesData.StartYear(), Is.EqualTo(10));
            Assert.That(timeSeriesData.EndYear(), Is.EqualTo(20));
        }