isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/audiojack.connected", out keyValueBool);
Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: audiojack.connected"));
- isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/battery.charging", out keyValueBool);
- Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: battery.charging"));
+ Information.TryGetValue<bool>("http://tizen.org/feature/battery", out supported);
+ if (supported)
+ {\r
+ isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/battery.charging", out keyValueBool);
+ Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: battery.charging"));
+
+ isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/charger", out keyValueBool);
+ Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: charger"));\r
+ }
isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/tvout", out keyValueBool);
Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: tvout"));
- isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/charger", out keyValueBool);
- Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: charger"));
-
isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/autorotation", out keyValueBool);
Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: autorotation"));