Beispiel #1
0
        public void IsStaticBDDScenario_Should_ReturnTrue_Given_AListOfComponentsWhereTwoOfThemAreDynamicComponentsAndOneIsAStaticComponent()
        {
            MethodsManagementUtilities methodsManagementUtilities = new MethodsManagementUtilities();
            MethodsManagementUtilitiesTestFirstDynamicComponent  dynamicBDDComponent1 = UnitTestUtility.CreateComponent <MethodsManagementUtilitiesTestFirstDynamicComponent>();
            MethodsManagementUtilitiesTestStaticComponent        staticComponent      = UnitTestUtility.CreateComponent <MethodsManagementUtilitiesTestStaticComponent>();
            MethodsManagementUtilitiesTestSecondDynamicComponent dynamicBDDComponent2 = UnitTestUtility.CreateComponent <MethodsManagementUtilitiesTestSecondDynamicComponent>();

            Component[] components = new Component[3] {
                dynamicBDDComponent1, staticComponent, dynamicBDDComponent2
            };
            bool result = methodsManagementUtilities.IsStaticBDDScenario(components);

            Assert.IsTrue(result, "THe method IsStaticBDDScenario does not return the right state");
        }