예제 #1
0
        private static UnitScenarioWithAllSupportedStepsInRandomOrder CreateSut()
        {
            var container = new ContainerFor <ConcreteObjectWithNoConstructor>(Substitute.For <IContainer>());
            var sut       = new UnitScenarioWithAllSupportedStepsInRandomOrder {
                Container = container
            };

            return(sut);
        }
예제 #2
0
        public void scenario_title_should_be_number_and_class_name_if_number_greater_than_zero()
        {
            var container = new ContainerFor <ConcreteObjectWithNoConstructor>(Substitute.For <IContainer>());
            var sut       = new UserStoryScenarioWithAllSupportedStepsInRandomOrder {
                Container = container, Number = 3
            };

            sut.Title.ShouldBe("Scenario 03: User Story Scenario With All Supported Steps In Random Order");
        }
예제 #3
0
        public void scenario_title_should_be_class_name_only_if_scenario_is_zero()
        {
            var container = new ContainerFor <ConcreteObjectWithNoConstructor>(Substitute.For <IContainer>());
            var sut       = new UserStoryScenarioWithAllSupportedStepsInRandomOrder {
                Container = container
            };

            sut.Title.ShouldBe("User Story Scenario With All Supported Steps In Random Order");
        }
예제 #4
0
 public void scenario_title_should_be_number_and_class_name_if_number_greater_than_zero()
 {
     var container = new ContainerFor<ConcreteObjectWithNoConstructor>(Substitute.For<IContainer>());
     var sut = new UserStoryScenarioWithAllSupportedStepsInRandomOrder {Container = container, Number = 3};
     sut.Title.ShouldBe("Scenario 03: User Story Scenario With All Supported Steps In Random Order");
 }
예제 #5
0
 public void scenario_title_should_be_class_name_only_if_scenario_is_zero()
 {
     var container = new ContainerFor<ConcreteObjectWithNoConstructor>(Substitute.For<IContainer>());
     var sut = new UserStoryScenarioWithAllSupportedStepsInRandomOrder {Container = container};
     sut.Title.ShouldBe("User Story Scenario With All Supported Steps In Random Order");
 }
예제 #6
0
 private static UnitScenarioWithAllSupportedStepsInRandomOrder CreateSut()
 {
     var container = new ContainerFor<ConcreteObjectWithNoConstructor>(Substitute.For<IContainer>());
     var sut = new UnitScenarioWithAllSupportedStepsInRandomOrder { Container = container };
     return sut;
 }