Пример #1
0
        void DisplayFunctionalitySupport(List <TestInfo> tests)
        {
            List <Feature> features = new List <Feature>(_td.Features);

            features.AddRange(_td.UndefinedFeatures);
            ProfilesSupportInfo info = ProfilesSupportInfo.LoadPreliminary(_onvifProfiles, _testInfos, tests, features);

            View.DisplayFunctionalityWithoutTestsInSuite(info.FunctionalityWithoutTests);
            View.DisplayFunctionalityToBeTested(info.FunctionalityUnderTests);
            View.DisplayFailedByFeaturesFunctionality(info.MandatoryFunctionalityWithoutFeatures);
            View.DisplaySkippedByFeaturesFunctionality(info.OptionalFunctionalityUnderSkippedTests);

            DisplayProfileScopes();
        }
        /// <summary>
        /// Displays at the profiles tree functionality
        ///   - to be tested;
        ///   - mandatory without features support
        ///   - optional without fetures support
        ///   - without tests in suite
        /// </summary>
        /// <param name="tests"></param>
        void DisplayFunctionalitySupport(IEnumerable <TestInfo> tests)
        {
            if (View.ProfilesView != null)
            {
                List <Feature> features = new List <Feature>(_td.Features);
                features.AddRange(_td.UndefinedFeatures);

                var parameters = new Dictionary <string, object>();
                parameters.Add("MaxPullPoints", _td.MaxPullPoints);

                ProfilesSupportInfo info = ProfilesSupportInfo.LoadPreliminary(_onvifProfiles, _testInfos, tests, features, parameters);

                View.ProfilesView.DisplayFunctionalityWithoutTestsInSuite(info.FunctionalityWithoutTests);
                View.ProfilesView.DisplayFunctionalityToBeTested(info.FunctionalityUnderTests);
                View.ProfilesView.DisplayMandatoryFunctionalityWithoutFeatures(info.MandatoryFunctionalityWithoutFeatures);
                View.ProfilesView.DisplayOptionalFunctionalityWithoutFeatures(info.OptionalFunctionalityUnderSkippedTests);

                DisplayProfileScopes();
                DisplayDiscoveryTypes();
            }
        }