C# Класс Onism.Cldr.Test.Utils.PatternCollectionGenerator

Represents a generator of PatternCollection instances. Uses DeterministicRandom to generate randomized yet deterministic output.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GeneratePatterns ( JContainer root, int desiredCount, bool skipValues = true ) : PatternCollection

Generates a collection of patterns for the specified JContainer.

PatternCollectionGenerator ( DeterministicRandom random ) : System

Initializes a new instance of PatternCollectionGenerator, using DeterministicRandom to get deterministic output.

Приватные методы

Метод Описание
AddWildcards ( string path ) : string This method relies on a feature of JContainerGenerator that the keys of properties are only non-negative numbers, chosen sequentially from 0 and not exceeding 9.

Описание методов

GeneratePatterns() публичный Метод

Generates a collection of patterns for the specified JContainer.
public GeneratePatterns ( JContainer root, int desiredCount, bool skipValues = true ) : PatternCollection
root JContainer
desiredCount int
skipValues bool
Результат PatternCollection

PatternCollectionGenerator() публичный Метод

Initializes a new instance of PatternCollectionGenerator, using DeterministicRandom to get deterministic output.
public PatternCollectionGenerator ( DeterministicRandom random ) : System
random DeterministicRandom
Результат System