public void AuthenticationSignalTypeEmit()
        {
            tlog.Debug(tag, $"AuthenticationSignalTypeEmit START");
            var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id;
            var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId;

            tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}");

            var testingTarget = new AuthenticationSignalType();

            Assert.IsNotNull(testingTarget, "Should be not null!");
            Assert.IsInstanceOf <AuthenticationSignalType>(testingTarget, "Should be an Instance of AuthenticationSignalType!");

            try
            {
                using (AutofillContainer container = new AutofillContainer("container"))
                {
                    testingTarget.Emit(container);
                }
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            testingTarget.Dispose();

            tlog.Debug(tag, $"AuthenticationSignalTypeEmit END (OK)");
        }
示例#2
0
        private void OnServiceEvent(object sender, AutofillContainer.AuthenticationEventArgs e)
        {
            AutofillContainer a1 = new AutofillContainer("myContent");

            e.AutofillContainer = a1;
            a1 = e.AutofillContainer;
        }
示例#3
0
        public void AutofillContainerAutofillListEventSignal()
        {
            tlog.Debug(tag, $"AutofillContainerAutofillListEventSignal START");
            AutofillContainer a1 = new AutofillContainer("myContainer");

            a1.AutofillListEventSignal();
            a1.Dispose();

            tlog.Debug(tag, $"AutofillContainerAutofillListEventSignal END (OK)");
            Assert.Pass("AutofillContainerAutofillListEventSignal");
        }
示例#4
0
        public void AutofillContainerSetSelectedItem()
        {
            tlog.Debug(tag, $"AutofillContainerSetSelectedItem START");
            AutofillContainer a1 = new AutofillContainer("myContainer");

            a1.SetSelectedItem("testContent");
            a1.Dispose();

            tlog.Debug(tag, $"AutofillContainerSetSelectedItem END (OK)");
            Assert.Pass("AutofillContainerSetSelectedItem");
        }
示例#5
0
        public void AutofillContainerGetListItem()
        {
            tlog.Debug(tag, $"AutofillContainerGetListItem START");
            AutofillContainer a1 = new AutofillContainer("myContainer");

            a1.GetListItem(0);
            a1.Dispose();

            tlog.Debug(tag, $"AutofillContainerGetListItem END (OK)");
            Assert.Pass("AutofillContainerGetListItem");
        }
示例#6
0
        public void AutofillContainerGetAutofillServiceImagePath()
        {
            tlog.Debug(tag, $"AutofillContainerGetAutofillServiceImagePath START");
            AutofillContainer a1 = new AutofillContainer("myContainer");

            a1.GetAutofillServiceImagePath();
            a1.Dispose();

            tlog.Debug(tag, $"AutofillContainerGetAutofillServiceImagePath END (OK)");
            Assert.Pass("AutofillContainerGetAutofillServiceImagePath");
        }
示例#7
0
        public void AutofillContainerRequestFillData()
        {
            tlog.Debug(tag, $"AutofillContainerRequestFillData START");
            AutofillContainer a1 = new AutofillContainer("myContainer");

            a1.RequestFillData();
            a1.Dispose();

            tlog.Debug(tag, $"AutofillContainerRequestFillData END (OK)");
            Assert.Pass("AutofillContainerRequestFillData");
        }
示例#8
0
        public void AutofillContainerDownCast()
        {
            tlog.Debug(tag, $"AutofillContainerDownCast START");
            BaseHandle        handle = new BaseHandle();
            AutofillContainer a1     = AutofillContainer.DownCast(handle);

            handle.Dispose();

            tlog.Debug(tag, $"AutofillContainerDownCast END (OK)");
            Assert.Pass("AutofillContainerDownCast");
        }
示例#9
0
        public void AutofillContainerConstructor()
        {
            tlog.Debug(tag, $"AutofillContainerConstructor START");
            AutofillContainer a1 = new AutofillContainer("myContainer");
            AutofillContainer b1 = new AutofillContainer(a1);

            b1.Dispose();
            a1.Dispose();

            tlog.Debug(tag, $"AutofillContainerConstructor END (OK)");
            Assert.Pass("AutofillContainerConstructor");
        }
示例#10
0
        public void AutofillContainerRemoveAutofillItem()
        {
            tlog.Debug(tag, $"AutofillContainerRemoveAutofillItem START");
            AutofillContainer a1 = new AutofillContainer("myContainer");

            BaseComponents.View view = new BaseComponents.View();
            a1.RemoveAutofillItem(view);
            a1.Dispose();

            tlog.Debug(tag, $"AutofillContainerRemoveAutofillItem END (OK)");
            Assert.Pass("AutofillContainerRemoveAutofillItem");
        }
示例#11
0
        public void AutofillContainerAssign()
        {
            tlog.Debug(tag, $"AutofillContainerAssign START");
            AutofillContainer a1 = new AutofillContainer("myContainer");
            AutofillContainer b1 = a1;

            b1.Dispose();
            a1.Dispose();

            tlog.Debug(tag, $"AutofillContainerAssign END (OK)");
            Assert.Pass("AutofillContainerAssign");
        }
示例#12
0
        public void AutofillContainergetCPtr()
        {
            tlog.Debug(tag, $"AutofillContainergetCPtr START");
            AutofillContainer a1 = new AutofillContainer("myContainer");

            global::System.Runtime.InteropServices.HandleRef b1 = AutofillContainer.getCPtr(a1);
            global::System.Runtime.InteropServices.HandleRef c1 = AutofillContainer.getCPtr(null);

            a1.Dispose();

            tlog.Debug(tag, $"AutofillContainergetCPtr END (OK)");
            Assert.Pass("AutofillContainergetCPtr");
        }
示例#13
0
        public void AutofillContainerListEvent()
        {
            tlog.Debug(tag, $"AutofillContainerListEvent START");
            AutofillContainer a1 = new AutofillContainer("myContainer");

            a1.ListEvent += OnListEvent;
            a1.ListEvent -= OnListEvent;
            object o1 = new object();

            AutofillContainer.AuthenticationEventArgs e = new AutofillContainer.AuthenticationEventArgs();

            OnServiceEvent(o1, e);
            a1.Dispose();

            tlog.Debug(tag, $"AutofillContainerServiceEvent END (OK)");
            Assert.Pass("AutofillContainerServiceEvent");
        }
示例#14
0
        public void AutofillContainerAddAutofillView()
        {
            tlog.Debug(tag, $"AutofillContainerAddAutofillView START");
            AutofillContainer a1 = new AutofillContainer("myContainer");

            BaseComponents.View view = new BaseComponents.View();
            int    propertyIndex     = 1;
            string id    = "myContainer";
            string label = "testLabel";

            AutofillContainer.ItemHint hint = AutofillContainer.ItemHint.CreditCardExpirationData;
            bool isSensitive = false;

            a1.AddAutofillView(view, propertyIndex, id, label, hint, isSensitive);
            a1.Dispose();

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