示例#1
0
            void AssertError(GalaxyCheck.IGen <object> gen)
            {
                Action action = () => gen.SampleOne(seed: seed, size: size);

                action.Should()
                .Throw <GalaxyCheck.Exceptions.GenErrorException>()
                .WithMessage("Error while running generator ChooseGen: 'choices' must be non-empty");
            }
示例#2
0
 IReadOnlyList <object> Sample(GalaxyCheck.IGen <IReadOnlyList <object> > gen, int seed) =>
 gen.SampleOne(seed: seed, size: size);