Пример #1
0
        public void GivenATwoStepWizard_OnStarting_WizardIsNotOnLastStep()
        {
            var step1 = new WizardStep();
            var step2 = new WizardStep();
            var wizard = new Wizard()
                    .AddStep(step1)
                    .AddStep(step2);

            wizard.Start();
            Assert.That(wizard.IsLastStep(), Is.False);
        }
Пример #2
0
        public void GivenAOneStepWizard_OnStarting_WizardIsOnLastStep()
        {
            var step = new WizardStep();
            var wizard = new Wizard()
                    .AddStep(step);

            wizard.Start();
            Assert.That(wizard.IsLastStep());
        }