[NUI] Update TCs of NUI.Devel.
[platform/core/csapi/tizenfx.git] / test / Tizen.NUI.Tests / Tizen.NUI.Devel.Tests / testcase / public / Xaml / MarkupExtensions / TSStaticExtension.cs
index 7945140..9e8f79e 100755 (executable)
@@ -13,6 +13,11 @@ namespace Tizen.NUI.Devel.Tests
         private const string tag = "NUITEST";
         private StaticExtension sExtention;
 
+        internal class IServiceProviderImpl : IServiceProvider
+        {
+            public object GetService(Type serviceType) { return null; }
+        }
+
         [SetUp]
         public void Init()
         {
@@ -51,5 +56,27 @@ namespace Tizen.NUI.Devel.Tests
 
             tlog.Debug(tag, $"StaticExtensionMember END");
         }
+
+        [Test]
+        [Category("P1")]
+        [Description("StaticExtension ProvideValue")]
+        [Property("SPEC", "Tizen.NUI.StaticExtension.ProvideValue M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        public void StaticExtensionProvideValue()
+        {
+            tlog.Debug(tag, $"StaticExtensionProvideValue START");
+
+            try
+            {
+                sExtention.ProvideValue(new IServiceProviderImpl());  // IXamlTypeResolver is null
+            }
+            catch (ArgumentException e)
+            {
+                tlog.Debug(tag, e.Message.ToString());
+                tlog.Debug(tag, $"StaticExtensionProvideValue END");
+                Assert.Pass("Caught ArgumentException : Passed!");
+            }
+        }
     }
 }
\ No newline at end of file