private static void ShouldBeSerializable(SerializationFormat format)
        {
            // Arrange.
            var series     = new Double[] { 0d, 1d, 2d, 3d, 4d };
            var target     = series.ComputeDescriptives();
            var serializer = new DynamicSerializer <DescriptiveStatistics>(format);

            // Act.
            var serializedTarget   = serializer.Serialize(target);
            var deserializedResult = serializer.Deserialize(serializedTarget);

            // Assert.
            deserializedResult.Should().NotBeNull();
            deserializedResult.Maximum.Should().Be(target.Maximum);
            deserializedResult.Mean.Should().Be(target.Mean);
            deserializedResult.Median.Should().Be(target.Median);
            deserializedResult.Midrange.Should().Be(target.Midrange);
            deserializedResult.Minimum.Should().Be(target.Minimum);
            deserializedResult.Range.Should().Be(target.Range);
            deserializedResult.Size.Should().Be(target.Size);
            deserializedResult.StandardDeviation.Should().Be(target.StandardDeviation);
            deserializedResult.Sum.Should().Be(target.Sum);
            deserializedResult.Variance.Should().Be(target.Variance);
        }