public void GitMaintenanceStepThrowsIfStoppedDuringGitCommand() { this.TestSetup(); CheckMethodStep step = new CheckMethodStep(this.context, WhenToStop.DuringGitCommand); step.Execute(); step.SawWorkInvoked.ShouldBeTrue(); step.SawEndOfMethod.ShouldBeFalse(); }
public void GitMaintenanceStepRunsGitAction() { this.TestSetup(); CheckMethodStep step = new CheckMethodStep(this.context); step.Execute(); step.SawWorkInvoked.ShouldBeTrue(); }
public void GitMaintenanceStepSkipsGitActionAfterStop() { this.TestSetup(); CheckMethodStep step = new CheckMethodStep(this.context); step.Stop(); step.Execute(); step.SawWorkInvoked.ShouldBeFalse(); }
public void GitMaintenanceStepSkipsRunGitCommandAfterStop() { this.TestSetup(); CheckMethodStep step = new CheckMethodStep(this.context, WhenToStop.BeforeGitCommand); step.Execute(); step.SawWorkInvoked.ShouldBeFalse(); step.SawEndOfMethod.ShouldBeFalse(); }