Пример #1
0
        [Test] public void basic_matching_of_plaintext_line(){
            var contextBasicGrammarContext = new Tutorial.BasicGrammarContext();
           System.Console.WriteLine(@"When my name is StorEvil");
#line 6
contextBasicGrammarContext.When_my_name_is(@"StorEvil");
#line hidden


        }
Пример #2
0
        [Test] public void parameterizing_and_adding_a_basic_assertion(){
            var contextBasicGrammarContext = new Tutorial.BasicGrammarContext();
           System.Console.WriteLine(@"When my name is ""Some other BDD framework""");
#line 17
contextBasicGrammarContext.When_my_name_is(@"Some other BDD framework");
#line hidden
           System.Console.WriteLine(@"All other BDD frameworks are eaten should be false");
#line 18
contextBasicGrammarContext.AllOtherBddFrameworksAreEaten.ShouldBe((System.Object) this.ParameterConverter.Convert(@"false", typeof(System.Object)));
#line hidden


        }
Пример #3
0
        [Test] public void assertion_using_the_ShouldXXX_methods(){
            var contextBasicGrammarContext = new Tutorial.BasicGrammarContext();
           System.Console.WriteLine(@"When my name is StorEvil");
#line 13
contextBasicGrammarContext.When_my_name_is(@"StorEvil");
#line hidden
           System.Console.WriteLine(@"All other BDD frameworks are eaten should be true");
#line 14
contextBasicGrammarContext.AllOtherBddFrameworksAreEaten.ShouldBe((System.Object) this.ParameterConverter.Convert(@"true", typeof(System.Object)));
#line hidden


        }
Пример #4
0
        [Test] public void a_basic_assertion(){
            var contextBasicGrammarContext = new Tutorial.BasicGrammarContext();
           System.Console.WriteLine(@"When my name is StorEvil");
#line 9
contextBasicGrammarContext.When_my_name_is(@"StorEvil");
#line hidden
           System.Console.WriteLine(@"I should eat all other BDD frameworks");
#line 10
contextBasicGrammarContext.I_should_eat_all_other_BDD_frameworks();
#line hidden


        }