[Property("AUTHOR", "Manish Rathod, manish.r@samsung.com")]
public void SetCredential_NO_EXCEPTION()
{
- /*
- * TEST CODE
- */
- TtsHelper.PrintLog(Type.DLogAndlogUtil, "Executing TC:SetCredential_NO_EXCEPTION");
- if (_featureSupported)
+ try
{
+ /*
+ * TEST CODE
+ */
+ TtsHelper.PrintLog(Type.DLogAndlogUtil, "Executing TC:SetCredential_NO_EXCEPTION");
TtsHelper.TtsInst.SetCredential("Credential");
+ TtsHelper.PrintLog(Type.DLogAndlogUtil, "Completed TC:SetCredential_NO_EXCEPTION");
+ }
+ catch (Exception e)
+ {
+ TtsHelper.PrintLog(Type.DLogAndlogUtil, "Caught Exception :" + e.ToString());
+ if (e is NotSupportedException) {
+ Assert.IsFalse(_featureSupported, "Invalid NotSupportedException");
+ } else {
+ Assert.IsTrue(false, "Caught Exception" + e.ToString());
+ }
}
- TtsHelper.PrintLog(Type.DLogAndlogUtil, "Completed TC:SetCredential_NO_EXCEPTION");
}
[Test]