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();
        }
        public void Sets_location()
        {
            var parser = new StoryParser();
            var s = parser.Parse("", "C:\\foo\\bar.feature");

            s.Location.ShouldEqual("C:\\foo\\bar.feature");
        }
Esempio n. 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);
 }
        public void SetupContext()
        {
            var parser = new StoryParser();

            Result = parser.Parse(testBackgroundText, "C:\\foo\\bar.feature");
        }
Esempio n. 7
0
        public void SetupContext()
        {
            var parser = new StoryParser();

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

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