Exemplo n.º 1
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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public void SetUp()
 {
     whatWasRead = 0;
     grammar = new ReadGrammar<int>("var", x => whatWasRead = x);
 }
Exemplo n.º 4
0
 public void SetUp()
 {
     whatWasRead = 0;
     grammar     = new ReadGrammar <int>("var", x => whatWasRead = x);
 }