public void GetStepDefinitions_WhenCalled_AllMethodsWithSpecFlowAttributesAreReturened() { SpecFlowAssembly specFlowAssembly = new SpecFlowAssembly(Assembly.GetExecutingAssembly()); var steps = specFlowAssembly.GetStepDefinitions(); Assert.IsTrue(steps.Count() > 0); }
public void GetUnusedStepDefintions_WhenCalled_TheStepsInTheUnusedStepsFilesAreReturned() { SpecFlowAssembly specFlowAssembly = new SpecFlowAssembly(Assembly.GetExecutingAssembly()); var steps = specFlowAssembly.GetUnusedStepDefintions(); Assert.IsTrue(steps.Count() > 0); }
public void GetAllInstructions_WhenCalled_AllInstructionsAreReturned() { SpecFlowAssembly specFlowAssembly = new SpecFlowAssembly(Assembly.GetExecutingAssembly()); var invocedMethods = specFlowAssembly.GetAllInvocedMethods(); Assert.IsTrue(invocedMethods.Count() > 0); }
public void WhenIRequestAListOfAllStepDefinitionsInTheSolution() { SpecFlowAssembly specFlowAssembly = new SpecFlowAssembly(Assembly.GetExecutingAssembly()); ScenarioContext.Current.Add("UnusedSteps", specFlowAssembly.GetUnusedStepDefintions()); }