Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: bluetooth"));\r
}
- isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/packetdata", out keyValueBool);
- Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: packetdata"));
+ Information.TryGetValue<bool>("http://tizen.org/runtimefeature/packetdata", out supported);
+ if (supported)
+ {
+ isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/packetdata", out keyValueBool);
+ Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: packetdata"));
+ }
- isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/dataroaming", out keyValueBool);
- Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: dataroaming"));
+ Information.TryGetValue<bool>("http://tizen.org/runtimefeature/dataroaming", out supported);
+ if (supported)
+ {
+ isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/dataroaming", out keyValueBool);
+ Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: dataroaming"));
+ }
- isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/vibration", out keyValueBool);
- Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: vibration"));
+ Information.TryGetValue<bool>("http://tizen.org/runtimefeature/vibration", out supported);
+ if (supported)
+ {
+ isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/vibration", out keyValueBool);
+ Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: vibration"));
+ }
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"));
Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: charger"));
}
- isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/tvout", out keyValueBool);
- Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: tvout"));
+ Information.TryGetValue<bool>("http://tizen.org/runtimefeature/tvout", out supported);
+ if (supported)
+ {
+ isError = Information.TryGetValue<bool>("http://tizen.org/runtimefeature/tvout", out keyValueBool);
+ Assert.IsTrue(isError, string.Format("TryGetValue return false for valid bool key: tvout"));
+ }
Information.TryGetValue<bool>("http://tizen.org/feature/screen.auto_rotation", out supported);
if (supported)