[Information][Auto][Non-ACR] Consider csharp specific value of model-config 51/195051/1
authorKichan Kwon <k_c.kwon@samsung.com>
Mon, 10 Dec 2018 07:37:29 +0000 (16:37 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Mon, 10 Dec 2018 07:41:15 +0000 (16:41 +0900)
Change-Id: Id0ba8a9e600ad94195c5ccdd6dd37ee610f6f8ef
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
tct-suite-vs/Tizen.Information.Tests/testcase/TSSystemInfo.cs

index b31c2f7..6f363f7 100755 (executable)
@@ -269,6 +269,7 @@ namespace Tizen.System.Tests
             }
 
             var value = "";
+            int csValue = -1;
             var key = "";
             var keyValueType = "";
 
@@ -286,6 +287,10 @@ namespace Tizen.System.Tests
                                 {
                                     keyValueType = reader.Value ?? "";
                                 }
+                                else if (reader.Name == "csapi")\r
+                                {\r
+                                    csValue = (reader.Value == "on") ? 1 : 0;\r
+                                }
                             }
                         }
                         break;
@@ -293,7 +298,13 @@ namespace Tizen.System.Tests
                             value = reader.Value;
                             if (keyValueType == "bool")
                             {
-                                if (bool.TryParse(value, out boolValue))
+                                if (csValue != -1)\r
+                                {\r
+                                    boolValue = (csValue == 1) ? true : false;\r
+                                    boolKeys.Add(new KeyValuePair<string, bool>(key, boolValue));\r
+                                    csValue = -1;\r
+                                }
+                                else if (bool.TryParse(value, out boolValue))
                                 {
                                     boolKeys.Add(new KeyValuePair<string, bool>(key, boolValue));
                                 }