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)"); }
private void OnServiceEvent(object sender, AutofillContainer.AuthenticationEventArgs e) { AutofillContainer a1 = new AutofillContainer("myContent"); e.AutofillContainer = a1; a1 = e.AutofillContainer; }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }