public void TestDiscreteValueSweep(double normalizedValue, string expected)
        {
            var paramSweep = new DiscreteValueGenerator(new DiscreteParamArguments()
            {
                Name = "bla", Values = new[] { "foo", "bar", "baz" }
            });
            var value = paramSweep.CreateFromNormalized(normalizedValue);

            Assert.Equal("bla", value.Name);
            Assert.Equal(expected, value.ValueText);
        }
        public void DiscreteValueGenerator_should_generate_value_from_normalize(object a, object b, object c, object d)
        {
            var objects = new object[] { a, b, c, d };
            var option  = new DiscreteValueGenerator <object> .Option <object>()
            {
                Name   = "discrete",
                Values = objects,
            };

            var generator = new DiscreteValueGenerator <object>(option);

            objects.Should().Contain(generator.CreateFromNormalized(0.5).RawValue);
            generator.Count.Should().Be(4);
        }