Exemple #1
0
        public StaticField GenerateNewField(FuzzType type)
        {
            type = type ?? Types.PickType();

            string      name  = "s_" + (++_counter);
            StaticField field = new StaticField(new VariableIdentifier(type, name), LiteralGenerator.GenLiteral(Random, type));

            _fields.Add(field);
            return(field);
        }
Exemple #2
0
 private ExpressionSyntax GenLiteral(FuzzType type)
 {
     return(LiteralGenerator.GenLiteral(Random, type));
 }