public void sad_path_with_exception()
        {
            grammar = new CheckGrammar<int>("value", () => { throw new NotImplementedException(); });

            StepExecutionResult results = grammar.Execute(step);
            results.Counts.ShouldEqual(0, 0, 1, 0);
            results.Results.HasErrors().ShouldBeTrue();
        }
Exemple #2
0
        public void sad_path_with_exception()
        {
            grammar = new CheckGrammar <int>("value", () => { throw new NotImplementedException(); });

            StepExecutionResult results = grammar.Execute(step);

            results.Counts.ShouldEqual(0, 0, 1, 0);
            results.Results.HasErrors().ShouldBeTrue();
        }
Exemple #3
0
 public void happy_path_execute_with_matching_values()
 {
     grammar.Execute(step).ShouldEqual(1, 0, 0, 0);
 }