public void ComponentApplicationCreateNativeSignal() { tlog.Debug(tag, $"ComponentApplicationCreateNativeSignal START"); ImageView view = new ImageView(); var testingTarget = new ComponentApplication(view.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <ComponentApplication>(testingTarget, "should be an instance of testing target class!"); try { var result = testingTarget.CreateNativeSignal(); Assert.IsNotNull(result, "should be not null"); Assert.IsInstanceOf <ApplicationSignal>(result, "should be an instance of ApplicationSignal class!"); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } view.Dispose(); testingTarget.Dispose(); tlog.Debug(tag, $"ComponentApplicationCreateNativeSignal END (OK)"); }
public void ComponentApplicationConstructor() { tlog.Debug(tag, $"ComponentApplicationConstructor START"); var testingTarget = new ComponentApplication(widget.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <ComponentApplication>(testingTarget, "should be an instance of testing target class!"); testingTarget.Dispose(); tlog.Debug(tag, $"ComponentApplicationConstructor END (OK)"); }
public void ComponentApplicationConstructorWithComponentApplication() { tlog.Debug(tag, $"ComponentApplicationConstructorWithComponentApplication START"); ImageView view = new ImageView(); ComponentApplication componentApplication = new ComponentApplication(view.SwigCPtr.Handle, false); Assert.IsNotNull(componentApplication, "should be not null"); Assert.IsInstanceOf <ComponentApplication>(componentApplication, "should be an instance of testing target class!"); var testingTarget = new ComponentApplication(componentApplication); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <ComponentApplication>(testingTarget, "should be an instance of testing target class!"); view.Dispose(); testingTarget.Dispose(); tlog.Debug(tag, $"ComponentApplicationConstructorWithComponentApplication END (OK)"); }
public void ComponentApplicationCreateNativeSignal() { tlog.Debug(tag, $"ComponentApplicationCreateNativeSignal START"); using (Widget widget = new Widget()) { var testingTarget = new ComponentApplication(widget.SwigCPtr.Handle, true); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <ComponentApplication>(testingTarget, "should be an instance of testing target class!"); var result = testingTarget.CreateNativeSignal(); Assert.IsNotNull(result, "should be not null"); Assert.IsInstanceOf <ApplicationSignal>(result, "should be an instance of ApplicationSignal class!"); testingTarget.Dispose(); } tlog.Debug(tag, $"ComponentApplicationCreateNativeSignal END (OK)"); }
public void ComponentApplicationAssign() { tlog.Debug(tag, $"ComponentApplicationAssign START"); var testingTarget = new ComponentApplication(widget.SwigCPtr.Handle, false); Assert.IsNotNull(testingTarget, "should be not null"); Assert.IsInstanceOf <ComponentApplication>(testingTarget, "should be an instance of testing target class!"); try { testingTarget.Assign(testingTarget); } catch (Exception e) { tlog.Debug(tag, e.Message.ToString()); Assert.Fail("Caught Exception: Failed!"); } testingTarget.Dispose(); tlog.Debug(tag, $"ComponentApplicationAssign END (OK)"); }