public void SetUp() { Feature = Actors.FeatureWithStepDefinitions; Step = Feature.Steps.First(); Feature.Content = @" Feature: Name Scenario: Name "; FeatureParser = Create.TestObjectFor<FeatureParser>(); ObjectFactory.Return<FeatureParserClass>(FeatureParser); Given.That(FeatureParser) .IgnoringArgs() .FeatureFrom("", null) .WillReturn(Feature); }
void Refresh(Step Step) { Content = Content.Substring(0, Step.Location.Start) + Step.Sentence + Content.Substring(Step.Location.End); }