public void ItCalculatesMaxMem(decimal[] memValues)
        {
            // Arrange
            var expectedMax = memValues.Max();

            var observations = MotherFor
                               .ObservationsBuilder
                               .WithMemReadings(memValues)
                               .Build();

            var sut = new ContainerStatsObservation(observations);

            // Act
            var result = sut.MaxMem();

            //Assert
            result.Should().Be(expectedMax);
        }
        public void ItCalculatesAverageMem(decimal[] memValues)
        {
            // Arrange
            var total           = memValues.Sum();
            var expectedAverage = total > 0 ? total / memValues.Count() : 0m;


            var observations = MotherFor
                               .ObservationsBuilder
                               .WithMemReadings(memValues)
                               .Build();

            var sut = new ContainerStatsObservation(observations);

            // Act
            var result = sut.AverageMem();

            //Assert
            result.Should().Be(expectedAverage);
        }