示例#1
0
        public void ValidateAllPredefinedBrowsersPerformance()
        {
            Skip.If(!Config.ENABLE_PROFILING);
            UserAgentAnalyzerTester uaa =
                UserAgentAnalyzerTester.NewBuilder()
                .ShowMatcherLoadStats()
                .ImmediateInitialization()
                .Build() as UserAgentAnalyzerTester;

            uaa.RunTests(false, false, null, true, true).Should().BeTrue();
        }
示例#2
0
        /// <summary>
        /// The ValidateAllPredefinedBrowsersMultipleFields
        /// </summary>
        /// <param name="fields">The fields<see cref="ICollection{string}"/></param>
        private void ValidateAllPredefinedBrowsersMultipleFields(ICollection <string> fields)
        {
            LOG.Info("==============================================================");
            LOG.Info(string.Format("Validating when ONLY asking for {0}", fields.ToString()));
            LOG.Info("--------------------------------------------------------------");
            UserAgentAnalyzerTester userAgentAnalyzer =
                UserAgentAnalyzerTester
                .NewBuilder()
                .WithoutCache()
                .WithFields(fields)
                .HideMatcherLoadStats()
                .Build() as UserAgentAnalyzerTester;

            userAgentAnalyzer.Should().NotBeNull();
            userAgentAnalyzer.RunTests(false, true, fields, false, false).Should().BeTrue();
        }
        public void ValidateAllPredefinedBrowsersForField(string fieldName)
        {
            ICollection <string> singleFieldList = new string[] { fieldName };

            LOG.Info("==============================================================");
            LOG.Info(string.Format("Validating when ONLY asking for {0}", fieldName));
            LOG.Info("--------------------------------------------------------------");
            UserAgentAnalyzerTester userAgentAnalyzer =
                UserAgentAnalyzerTester
                .NewBuilder()
                .WithoutCache()
                .WithField(fieldName)
                .HideMatcherLoadStats()
                .Build() as UserAgentAnalyzerTester;

            userAgentAnalyzer.Should().NotBeNull();
            userAgentAnalyzer.RunTests(false, true, singleFieldList, false, false).Should().BeTrue();
        }