Esempio n. 1
0
        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));
            }
        }
Esempio n. 2
0
        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));
            }
        }