public void OutOfRangeValueThrow(string badValue)
        {
            var qarg = new Queue <string>();
            var sce  = new SuccessThresholdExposed();

            qarg.Enqueue(badValue);
            qarg.Enqueue("rededesintox");
            Assert.Throws <InvalidArgumentValueException>(() => sce.TakeArgumentsExposed(qarg));
        }
        public void NonsenseThrow(string nonsense)
        {
            var qarg = new Queue <string>();
            var sce  = new SuccessThresholdExposed();

            qarg.Enqueue(nonsense);
            qarg.Enqueue("lé");
            Assert.Throws <OptionArgumentParseException>(() => sce.TakeArgumentsExposed(qarg));
        }
        public void AssertArgumentIsParsed(string anArgument, float expected)
        {
            var qarg = new Queue <string>();
            var sce  = new SuccessThresholdExposed();

            qarg.Enqueue(anArgument);
            qarg.Enqueue("Fake");
            qarg.Enqueue("plouf");
            qarg.Enqueue("wow, much code");
            sce.TakeArgumentsExposed(qarg);

            Assert.AreEqual(sce.MinScore, expected);
        }