public void execute_with_exceptions()
        {
            grammar = new ReadGrammar<int>("var", x => { throw new NotImplementedException(); });

            Step step = new Step("some grammar").With("var", "1");
            grammar.Execute(step).ShouldEqual(0, 0, 1, 0);
        }
Example #2
0
        public void execute_with_exceptions()
        {
            grammar = new ReadGrammar <int>("var", x => { throw new NotImplementedException(); });

            Step step = new Step("some grammar").With("var", "1");

            grammar.Execute(step).ShouldEqual(0, 0, 1, 0);
        }
 public void SetUp()
 {
     whatWasRead = 0;
     grammar = new ReadGrammar<int>("var", x => whatWasRead = x);
 }
Example #4
0
 public void SetUp()
 {
     whatWasRead = 0;
     grammar     = new ReadGrammar <int>("var", x => whatWasRead = x);
 }