Пример #1
0
        public void XamlServiceProviderFindByName()
        {
            tlog.Debug(tag, $"XamlServiceProviderFindByName START");

            try
            {
                object   o11 = new object();
                object   o12 = new object();
                object[] o1  = { o11, o12, };

                object targetObject  = new object();
                var    testingTarget = new SimpleValueTargetProvider(o1, targetObject);
                testingTarget.FindByName("mystring");
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            tlog.Debug(tag, $"XamlServiceProviderFindByName END");
        }
Пример #2
0
        public void XamlServiceProviderFindByName()
        {
            tlog.Debug(tag, $"XamlServiceProviderFindByName START");

            try
            {
                object   o11 = new object();
                object   o12 = new object();
                object[] o1  = { o11, o12, };

                object targetObject = new object();
                SimpleValueTargetProvider simpleValueTargetProvider = new SimpleValueTargetProvider(o1, targetObject);
                simpleValueTargetProvider.FindByName("mystring");
            }
            catch (Exception e)
            {
                Tizen.Log.Error(tag, "Caught Exception" + e.ToString());
                Assert.Fail("Caught Exception" + e.ToString());
            }

            tlog.Debug(tag, $"XamlServiceProviderFindByName END (OK)");
            Assert.Pass("XamlServiceProviderFindByName");
        }