예제 #1
0
        public void Sets_location()
        {
            var parser = new StoryParser();
            var s = parser.Parse("", "C:\\foo\\bar.feature");

            s.Location.ShouldEqual("C:\\foo\\bar.feature");
        }
예제 #2
0
        public void Should_Handle_No_Scenarios()
        {
            var parser = new StoryParser();
            var s = parser.Parse("", null);

            s.Scenarios.Count().ShouldEqual(0);
        }
        public void Returns_null()
        {
            var parser = new StoryParser();
            var s = parser.Parse("", null);

            s.ShouldBeNull();
        }
예제 #4
0
        public void Returns_null()
        {
            var parser = new StoryParser();
            var s      = parser.Parse("", null);

            s.ShouldBeNull();
        }
 public void SetupContext()
 {
     var parser = new StoryParser();
     Result = parser.Parse(testSingleStoryText, null);
 }
예제 #6
0
        public string GenerateCode(string inputFilePath, string inputFileContents, string defaultNamespace)
        {
            var story = new StoryParser().Parse(inputFileContents, inputFilePath);

            return _generator.Generate(story, defaultNamespace);
        }
        public void SetupContext()
        {
            var parser = new StoryParser();

            Result = parser.Parse(testBackgroundText, "C:\\foo\\bar.feature");
        }
예제 #8
0
        public void SetupContext()
        {
            var parser = new StoryParser();

            Result = parser.Parse(testBackgroundText, "C:\\foo\\bar.feature");
        }
예제 #9
0
        public void SetupContext()
        {
            var parser = new StoryParser();

            Result = parser.Parse(testStoryText, null);
        }