public void DuplicatesAreEliminated()
        {
            var compositeValidator = new CompositeValidator(Enumerable.Repeat(JitOptimizationsValidator.DontFailOnError, 3).ToArray());

            Assert.Single(
                compositeValidator.Validators,
                validator => ReferenceEquals(validator, JitOptimizationsValidator.DontFailOnError));
        }
        public void ThreatWarningsAsErrorsOverridesDefaultBehaviour()
        {
            var compositeValidator = new CompositeValidator(
                new[]
                {
                    ExecutionValidator.DontFailOnError,
                    ExecutionValidator.FailOnError
                });

            Assert.True(compositeValidator.TreatsWarningsAsErrors);
            Assert.Contains(ExecutionValidator.FailOnError, compositeValidator.Validators);
            Assert.DoesNotContain(ExecutionValidator.DontFailOnError, compositeValidator.Validators);
        }
        public void BaseLineValidatorIsMandatory()
        {
            var compositeValidator = new CompositeValidator(new IValidator[0]);

            Assert.Contains(BaselineValidator.FailOnError, compositeValidator.Validators);
        }