[Systemsettings][Non-ACR][Update DefaultFont TCT for font feature] 17/181517/1
authorjinwang.an <jinwang.an@samsung.com>
Thu, 14 Jun 2018 10:12:18 +0000 (19:12 +0900)
committerjinwang.an <jinwang.an@samsung.com>
Thu, 14 Jun 2018 10:15:01 +0000 (19:15 +0900)
Change-Id: I02d4faea18e0973ad379f441a43ec0da4a400d0b
Signed-off-by: jinwang.an <jinwang.an@samsung.com>
tct-suite-vs/Tizen.Systemsettings.Tests/testcase/TSSystemSettings.cs

index 8eda16b..c64ed6d 100755 (executable)
@@ -712,9 +712,16 @@ namespace Tizen.System.Tests
         [Property("AUTHOR", "Aditya Aswani, a.aswani@samsung.com")]
         public static void DefaultFontType_READ_ONLY()
         {
-            /* TEST CODE */
-            Assert.IsNotNull(Tizen.System.SystemSettings.DefaultFontType, "DefaultFontType_READ_ONLY: DefaultFontType is null");
-            Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.DefaultFontType, "DefaultFontType_READ_ONLY: DefaultFontType not an instance of string");
+            try
+            {
+                /* TEST CODE */
+                Assert.IsNotNull(Tizen.System.SystemSettings.DefaultFontType, "DefaultFontType_READ_ONLY: DefaultFontType is null");
+                Assert.IsInstanceOf<string>(Tizen.System.SystemSettings.DefaultFontType, "DefaultFontType_READ_ONLY: DefaultFontType not an instance of string");
+            } catch (NotSupportedException) {
+                bool isSupport = true;
+                Information.TryGetValue<bool>("tizen.org/feature/systemsetting.font", out isSupport);
+                Assert.IsTrue(isSupport == false, "Invalid NotSupportedException");
+            }
         }
 
         // LocaleCountry