예제 #1
0
        public void ViewAccessibilityAddressCollectionGetRelationSize()
        {
            tlog.Debug(tag, $"ViewAccessibilityAddressCollectionGetRelationSize START");

            using (View view = new ImageView())
            {
                var testingTarget = new AddressCollection(Interop.ControlDevel.DaliToolkitDevelControlNewGetAccessibilityRelations(view.SwigCPtr));
                Assert.IsNotNull(testingTarget, "Can't create success object AddressCollection");
                Assert.IsInstanceOf <AddressCollection>(testingTarget, "Should be an instance of AddressCollection type.");

                try
                {
                    testingTarget.GetRelationSize(AccessibilityRelationType.DetailsFor);
                }
                catch (Exception e)
                {
                    tlog.Debug(tag, e.Message.ToString());
                    Assert.Fail("Caught Exception: Failed!");
                }
            }

            tlog.Debug(tag, $"ViewAccessibilityAddressCollectionGetRelationSize END (OK)");
        }