Validate() public method

Checks constraints on all the parameters' values, throws ArgumentException if there are any violations.
public Validate ( ) : void
return void
        public RealisticMapGenState([NotNull] RealisticMapGenParameters genParameters)
        {
            if (genParameters == null)
            {
                throw new ArgumentNullException("genParameters");
            }
            genParams = genParameters;
            genParams.Validate();
            Parameters = genParameters;

            if (!genParams.CustomWaterLevel)
            {
                genParams.WaterLevel = (genParams.MapHeight - 1) / 2;
            }

            rand  = new Random(genParams.Seed);
            noise = new Noise(genParams.Seed, NoiseInterpolationMode.Bicubic);
            EstimateComplexity();

            ReportsProgress      = true;
            SupportsCancellation = true;
        }