X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=test%2FTizen.NUI.Tests%2FTizen.NUI.Devel.Tests%2Ftestcase%2Finternal%2FXaml%2FTSPruneIgnoredNodesVisitor.cs;h=7d1a2062f1ed4a7a8c222691bbf965d2d0bf4e1a;hb=d44887089b6b27bc32c43468d407e02f2d567a2d;hp=1a2b22c6a2acf06412af67755ece2667104f78f8;hpb=8245aaf1bde698a29f95b8e9a61bbd6f619151d8;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Xaml/TSPruneIgnoredNodesVisitor.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Xaml/TSPruneIgnoredNodesVisitor.cs index 1a2b22c..7d1a206 100755 --- a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Xaml/TSPruneIgnoredNodesVisitor.cs +++ b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Xaml/TSPruneIgnoredNodesVisitor.cs @@ -163,5 +163,52 @@ namespace Tizen.NUI.Devel.Tests tlog.Debug(tag, $"NamescopingVisitorSkipChildren END"); } + public class IXmlNamespaceResolverImplement : IXmlNamespaceResolver + { + public IDictionary GetNamespacesInScope(XmlNamespaceScope scope) + { + throw new NotImplementedException(); + } + + public string LookupNamespace(string prefix) + { + throw new NotImplementedException(); + } + + public string LookupPrefix(string namespaceName) + { + throw new NotImplementedException(); + } + } + + [Test] + [Category("P1")] + [Description("NamescopingVisitor IsResourceDictionary")] + [Property("SPEC", "Tizen.NUI.NamescopingVisitor.IsResourceDictionary M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + public void NamescopingVisitorIsResourceDictionary() + { + tlog.Debug(tag, $"NamescopingVisitorIsResourceDictionary START"); + + try + { + Assert.IsNotNull(visitor, "null PruneIgnoredNodesVisitor"); + IList list = null; + XmlType xmlType = new XmlType("myNameSpace", "myName", list); + + IXmlNamespaceResolverImplement i1 = new IXmlNamespaceResolverImplement(); + ElementNode n1 = new ElementNode(xmlType, "myNameSpace", i1); + + bool b1 = visitor.IsResourceDictionary(n1); + } + catch (Exception e) + { + Tizen.Log.Error(tag, "Caught Exception" + e.ToString()); + Assert.Fail("Caught Exception" + e.ToString()); + } + + tlog.Debug(tag, $"NamescopingVisitorIsResourceDictionary END"); + } } } \ No newline at end of file