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