Пример #1
0
        public async Task RunSpec()
        {
            var val = await _editor.GetValue();

            var spec = new Spec();

            spec.AddStepImplAssembly(Assembly.GetExecutingAssembly());
            spec.AddStepDefText(val);
            var results = spec.Run();

            Results = "";
            foreach (var result in results)
            {
                Results += $"{result}\n";
                Console.WriteLine(result);
            }

            StateHasChanged();
        }