Exemplo n.º 1
0
 public static UserAgentYamlTestCase ReadFromMap(Dictionary<string, string> map)
 {
   UserAgentYamlTestCase tc = new UserAgentYamlTestCase()
   {
     UserAgent = map["user_agent_string"],
     Family = map["family"],
     Major = map["major"],
     Minor = map["minor"],
     Patch = map["patch"],
   };
   return tc;
 }
Exemplo n.º 2
0
        public static UserAgentYamlTestCase ReadFromMap(Dictionary <string, string> map)
        {
            UserAgentYamlTestCase tc = new UserAgentYamlTestCase()
            {
                UserAgent = map["user_agent_string"],
                Family    = map["family"],
                Major     = map["major"],
                Minor     = map["minor"],
                Patch     = map["patch"],
            };

            return(tc);
        }
Exemplo n.º 3
0
 public void can_run_user_agent_parser_tests()
 {
     RunTests <UserAgentYamlTestCase>(
         "UAParser.Tests.TestResources.test_user_agent_parser.yaml",
         configMap => UserAgentYamlTestCase.ReadFromMap(configMap));
 }
Exemplo n.º 4
0
 public void can_run_pgts_browser_list_tests()
 {
     RunTests <UserAgentYamlTestCase>(
         "UAParser.Tests.TestResources.pgts_browser_list.yaml",
         configMap => UserAgentYamlTestCase.ReadFromMap(configMap));
 }
Exemplo n.º 5
0
 public void can_run_firefox_user_agent_string_tests()
 {
     RunTests <UserAgentYamlTestCase>(
         "UAParser.Tests.TestResources.firefox_user_agent_strings.yaml",
         configMap => UserAgentYamlTestCase.ReadFromMap(configMap));
 }