public static DeviceYamlTestCase ReadFromMap(Dictionary <string, string> map) { DeviceYamlTestCase tc = new DeviceYamlTestCase() { UserAgent = map["user_agent_string"], Family = map["family"], }; return(tc); }
public static DeviceYamlTestCase ReadFromMap(Dictionary<string, string> map) { DeviceYamlTestCase tc = new DeviceYamlTestCase() { UserAgent = map["user_agent_string"], Family = map["family"], }; return tc; }
public static DeviceYamlTestCase ReadFromMap(Dictionary<string, string> map) { DeviceYamlTestCase tc = new DeviceYamlTestCase() { UserAgent = map["user_agent_string"], Family = map["family"], IsMobile = map["is_mobile"] == "True", IsSpider = map["is_spider"] == "True", }; return tc; }
public static DeviceYamlTestCase ReadFromMap(Dictionary <string, string> map) { DeviceYamlTestCase tc = new DeviceYamlTestCase() { UserAgent = map["user_agent_string"], Family = map["family"], IsMobile = map["is_mobile"] == "True", IsSpider = map["is_spider"] == "True", }; return(tc); }
public void can_run_device_tests() { RunTests <DeviceYamlTestCase>( "UAParser.Tests.TestResources.test_device.yaml", configMap => DeviceYamlTestCase.ReadFromMap(configMap)); }