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(); }
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(); }
public void happy_path_execute_with_matching_values() { grammar.Execute(step).ShouldEqual(1, 0, 0, 0); }