public void WebCertificateConstructor() { tlog.Debug(tag, $"WebCertificateConstructor START"); using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai")) { var testingTarget = new WebCertificate(webview.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <WebCertificate>(testingTarget, "Should return WebCertificate instance."); testingTarget.Dispose(); } tlog.Debug(tag, $"WebCertificateConstructor END (OK)"); }
public void WebViewCertificateReceivedEventArgsCertificate() { tlog.Debug(tag, $"WebViewCertificateReceivedEventArgsCertificate START"); using (Tizen.NUI.BaseComponents.WebView webview = new Tizen.NUI.BaseComponents.WebView("Shanghai", "Asia/Shanghai")) { WebCertificate certificate = new WebCertificate(webview.SwigCPtr.Handle, false); var testingTarget = new WebViewCertificateReceivedEventArgs(certificate); Assert.IsNotNull(testingTarget, "null handle"); Assert.IsInstanceOf <WebViewCertificateReceivedEventArgs>(testingTarget, "Should return WebViewCertificateReceivedEventArgs instance."); var result = testingTarget.Certificate; tlog.Debug(tag, "Certificate : " + result); certificate.Dispose(); } tlog.Debug(tag, $"WebViewCertificateReceivedEventArgsCertificate END (OK)"); }