Mock Magic ยท Articles

Articles on test data in Unity

Field notes from building Mock Magic and Chart Guru: random seeds, strings and IDs, edge-case data, live data feeds, data-driven tests and believable demo content in Unity.

October 16, 2026

Random seeds in Unity: repeat any result

A seed fixes a sequence of numbers, not who consumes them. How UnityEngine.Random, System.Random and Unity.Mathematics.Random take seeds, how to save and restore state, why seeded runs still drift, and how Mock Magic keeps test data identical.
November 11, 2026

Demo screenshots without customer data

Store screenshots, trailers and sales demos need content that looks lived in, and real customer records do not belong in them. What makes generated demo data believable, and how to rebuild the same state for every size, language and re-shoot.
October 10, 2026

Good test data is uncomfortable

Mock Magic started as Chart Guru's test data generator, because tidy demo rows hide layout bugs. A catalog of uncomfortable data, from long labels and missing fields to bursts, duplicates and ties, and how to generate each kind on purpose.
August 29, 2026

Random strings, IDs, colors and enum values in Unity

Copy-paste C# for the small random values every Unity project needs: codes from a character set, GUIDs, unique counters, colors, enum values and weighted picks. Then the Mock Magic one-liners that do the same, seeded and ready for tests.
August 12, 2026

Data-driven tests with generated inputs in Unity

TestCase and TestCaseSource turn one test into many. Seeded Mock Magic data gives those cases realistic inputs that stay identical on every run, unlike NUnit's random helpers. Patterns, pitfalls and fixtures frozen as C# arrays.
November 11, 2026

Constant, burst or drip: how live data really arrives

Telemetry ticks at a fixed rate, batches arrive in bursts, events drip in at random gaps, and networks add jitter and outages. What each rhythm does to a dashboard, and how to simulate it in Unity with Mock Magic's four stream rhythms.

Mock Magic started as the test data generator behind Chart Guru, because good chart examples need data that is hard to draw. These articles collect lessons from building both tools about randomness, reproducibility and data that finds bugs before your players do.

Mock Magic

Realistic fake data for Unity, from one value to a live stream.