public void Values() { var seeds = Enumerable.Range(0, 3); foreach (var seed in seeds) { var sample = Gen.Char().Select(c => char.IsControl(c) ? "<control>" : c.ToString()).Sample(seed: seed); var nameExtension = string.Join("_", new[] { $"Seed_{seed}" }); Snapshot.Match(sample, SnapshotNameExtension.Create(nameExtension)); } }
public void ExampleSpaces() { var seeds = Enumerable.Range(0, 3); foreach (var seed in seeds) { var sample = Gen.Char() .Select(c => char.IsControl(c) ? "<control>" : c.ToString()) .Advanced.SampleOneExampleSpace(seed: seed, size: 75) .Take(500) .Render(x => x); var nameExtension = string.Join("_", new[] { $"Seed_{seed}" }); Snapshot.Match(sample, SnapshotNameExtension.Create(nameExtension)); } }