I am trying to create a constructor for Feature.cs file in specflow. But the behaviour is abnormal when I try to debug. Is there a way to create constructor for this feature.cs file? Or we cannot edit this file?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s no point in editing this file since it will be overwritten everytime that you modify the xxx.feature.
However the class in xxx.feature.cs is declared as partial so you can add xxx.anythingYouLike.cs to your solution with a similar partial class declaration e.g.
public partial class xxxFeatureand add whatever code you like there.I’m not suggesting this is good practice, but it can be useful.