From: Kichan Kwon Date: Mon, 10 Dec 2018 07:37:29 +0000 (+0900) Subject: [Information][Auto][Non-ACR] Consider csharp specific value of model-config X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90ee7b35fd236657f5ba713eb7ead5db5699ba6c;p=test%2Ftct%2Fcsharp%2Fapi.git [Information][Auto][Non-ACR] Consider csharp specific value of model-config Change-Id: Id0ba8a9e600ad94195c5ccdd6dd37ee610f6f8ef Signed-off-by: Kichan Kwon --- diff --git a/tct-suite-vs/Tizen.Information.Tests/testcase/TSSystemInfo.cs b/tct-suite-vs/Tizen.Information.Tests/testcase/TSSystemInfo.cs index b31c2f7d3..6f363f7aa 100755 --- a/tct-suite-vs/Tizen.Information.Tests/testcase/TSSystemInfo.cs +++ b/tct-suite-vs/Tizen.Information.Tests/testcase/TSSystemInfo.cs @@ -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") + { + csValue = (reader.Value == "on") ? 1 : 0; + } } } break; @@ -293,7 +298,13 @@ namespace Tizen.System.Tests value = reader.Value; if (keyValueType == "bool") { - if (bool.TryParse(value, out boolValue)) + if (csValue != -1) + { + boolValue = (csValue == 1) ? true : false; + boolKeys.Add(new KeyValuePair(key, boolValue)); + csValue = -1; + } + else if (bool.TryParse(value, out boolValue)) { boolKeys.Add(new KeyValuePair(key, boolValue)); }