Mock Magic API Reference
This reference is generated from the shipped Mock Magic assemblies and their XML documentation.
MockMagic
Section titled “MockMagic”- ExportFormat: Export formats for mock data.
- LabelPreset: Preset label collections for series data.
- Mock: Switch-style dispatcher from MockMagic.SimpleDataType to the matching generator. Lives in its own partial so the core file stays focused on the raw…
- Mock.Datasets: Friendly dataset aliases to aid discovery (e.g. Mock.Datasets.Person() ).
- MockDataPoint: Represents a single data point with a label and value.
- MockExport: Static class for exporting mock data to various formats.
- MockExtensions: Convenience helpers that let generated values become null /default with a tunable probability, plus small IList/IReadOnlyList helpers ( PickRandom…
- MockOf
: Delegate-based fluent object builder with no reflection or expression trees — safe for Unity’s IL2CPP/AOT backend. - MockPerson: Internally consistent person. Email and username are derived from the drawn name, MockMagic.MockPerson.DateOfBirth agrees with…
- MockRandom: Seedable random facade that all MockMagic generators route through. Wraps a System.Random so results are reproducible across runs, AOT/IL2CPP…
- MockSeries: Static class for generating series data with various patterns.
- MockStream: Continuous mock data streaming to registered listeners. Works in both Play Mode (via coroutines) and Edit Mode (via editor updates).
- MockStreaming: Static convenience class for accessing MockStream without direct instance management.
- SeriesPattern: Patterns for generating series data.
- SimpleDataType: Types of simple data that can be generated.
- StreamRhythm: Rhythm modes for continuous data streaming.