Exemplo n.º 1
0
 void SetUpParser()
 {
     Parser = new FeatureParserClass
     {
         ScenarioTokenizer = Substitute.For<ScenarioTokenizer>(),
     };
 }
Exemplo n.º 2
0
        void SetUpParser()
        {
            Parser = new FeatureParserClass
            {
                ScenarioTokenizer = Substitute.For<ScenarioTokenizer>(),
                TypeResolver = Substitute.For<TypeResolver>()
            };

            Parser.TypeResolver.TypeOf("StepLibrary", "Common").Returns(typeof(StepLibrary));
            Parser.TypeResolver.TypeOf("AnotherStepLibrary", "Common").Returns(typeof(AnotherStepLibrary));
            Parser.TypeResolver.TypeOf("StepLibraryInSameNamespace", "Common").Returns(typeof(StepLibraryInSameNamespace));
        }